Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b878827d
Commit
b878827d
authored
Feb 12, 2000
by
Gerd Moellmann
Browse files
(toplevel): Require CL at compile time.
(uniquify-push): Removed.
parent
5a7b9024
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
lisp/uniquify.el
lisp/uniquify.el
+5
-7
No files found.
lisp/uniquify.el
View file @
b878827d
...
...
@@ -85,6 +85,7 @@
;;; Code:
(
provide
'uniquify
)
(
eval-when-compile
(
require
'cl
))
;;; User-visible variables
...
...
@@ -159,9 +160,6 @@ variable is ignored."
;;; Utilities
(
defmacro
uniquify-push
(
item
list
)
`
(
setq
,
list
(
cons
,
item
,
list
)))
;; For directories, return the last component, not the empty string.
(
defun
uniquify-file-name-nondirectory
(
file-name
)
(
file-name-nondirectory
(
directory-file-name
file-name
)))
...
...
@@ -213,9 +211,9 @@ file name elements. Arguments cause only a subset of buffers to be renamed."
(
equal
rawname
(
uniquify-file-name-nondirectory
newbuffile
))))))
(
if
deserving
(
uniquify-
push
(
list
rawname
bfn
buffer
nil
)
fix-list
)
(
uniquify-
push
(
list
(
buffer-name
buffer
))
uniquify-non-file-buffer-names
)))
(
push
(
list
rawname
bfn
buffer
nil
)
fix-list
)
(
push
(
list
(
buffer-name
buffer
))
uniquify-non-file-buffer-names
)))
(
setq
buffers
(
cdr
buffers
))))
;; selects buffers whose names may need changing, and others that
;; may conflict.
...
...
@@ -273,7 +271,7 @@ Works on dired buffers and ordinary file-visiting buffers, but no others."
(
uniquify-rationalize-conflicting-sublist
conflicting-sublist
old-name
depth
)
(
setq
conflicting-sublist
nil
)))
(
uniquify-
push
item
conflicting-sublist
)
(
push
item
conflicting-sublist
)
(
setq
old-name
proposed-name
))
(
setq
fix-list
(
cdr
fix-list
)))
(
uniquify-rationalize-conflicting-sublist
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment