diff options
| author | Gerd Moellmann | 2000-02-12 19:48:01 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-02-12 19:48:01 +0000 |
| commit | b878827d99e48c8c35c56cec70bb378c02200e3d (patch) | |
| tree | 1298b06459ea8f75188e71feabaf53ba58059aef | |
| parent | 5a7b902473ff325cd04cec0f3b755c986c4207fa (diff) | |
| download | emacs-b878827d99e48c8c35c56cec70bb378c02200e3d.tar.gz emacs-b878827d99e48c8c35c56cec70bb378c02200e3d.zip | |
(toplevel): Require CL at compile time.
(uniquify-push): Removed.
| -rw-r--r-- | lisp/uniquify.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 198353402fc..aa5faf0498c 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el | |||
| @@ -85,6 +85,7 @@ | |||
| 85 | ;;; Code: | 85 | ;;; Code: |
| 86 | 86 | ||
| 87 | (provide 'uniquify) | 87 | (provide 'uniquify) |
| 88 | (eval-when-compile (require 'cl)) | ||
| 88 | 89 | ||
| 89 | ;;; User-visible variables | 90 | ;;; User-visible variables |
| 90 | 91 | ||
| @@ -159,9 +160,6 @@ variable is ignored." | |||
| 159 | 160 | ||
| 160 | ;;; Utilities | 161 | ;;; Utilities |
| 161 | 162 | ||
| 162 | (defmacro uniquify-push (item list) | ||
| 163 | `(setq ,list (cons ,item ,list))) | ||
| 164 | |||
| 165 | ;; For directories, return the last component, not the empty string. | 163 | ;; For directories, return the last component, not the empty string. |
| 166 | (defun uniquify-file-name-nondirectory (file-name) | 164 | (defun uniquify-file-name-nondirectory (file-name) |
| 167 | (file-name-nondirectory (directory-file-name file-name))) | 165 | (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." | |||
| 213 | (equal rawname | 211 | (equal rawname |
| 214 | (uniquify-file-name-nondirectory newbuffile)))))) | 212 | (uniquify-file-name-nondirectory newbuffile)))))) |
| 215 | (if deserving | 213 | (if deserving |
| 216 | (uniquify-push (list rawname bfn buffer nil) fix-list) | 214 | (push (list rawname bfn buffer nil) fix-list) |
| 217 | (uniquify-push (list (buffer-name buffer)) | 215 | (push (list (buffer-name buffer)) |
| 218 | uniquify-non-file-buffer-names))) | 216 | uniquify-non-file-buffer-names))) |
| 219 | (setq buffers (cdr buffers)))) | 217 | (setq buffers (cdr buffers)))) |
| 220 | ;; selects buffers whose names may need changing, and others that | 218 | ;; selects buffers whose names may need changing, and others that |
| 221 | ;; may conflict. | 219 | ;; may conflict. |
| @@ -273,7 +271,7 @@ Works on dired buffers and ordinary file-visiting buffers, but no others." | |||
| 273 | (uniquify-rationalize-conflicting-sublist | 271 | (uniquify-rationalize-conflicting-sublist |
| 274 | conflicting-sublist old-name depth) | 272 | conflicting-sublist old-name depth) |
| 275 | (setq conflicting-sublist nil))) | 273 | (setq conflicting-sublist nil))) |
| 276 | (uniquify-push item conflicting-sublist) | 274 | (push item conflicting-sublist) |
| 277 | (setq old-name proposed-name)) | 275 | (setq old-name proposed-name)) |
| 278 | (setq fix-list (cdr fix-list))) | 276 | (setq fix-list (cdr fix-list))) |
| 279 | (uniquify-rationalize-conflicting-sublist | 277 | (uniquify-rationalize-conflicting-sublist |