diff options
| author | Stefan Monnier | 2005-01-05 21:49:02 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-01-05 21:49:02 +0000 |
| commit | 9890ec7d19285475a18f191a695eaf4cd90ba6a3 (patch) | |
| tree | 344bf7485cf173e13ad088b984fe3302b26e2960 | |
| parent | 2eec3e8edf086e6a89f81fa1591d9f25b0bc3344 (diff) | |
| download | emacs-9890ec7d19285475a18f191a695eaf4cd90ba6a3.tar.gz emacs-9890ec7d19285475a18f191a695eaf4cd90ba6a3.zip | |
(uniquify-rationalize-file-buffer-names): Fix corner case when renaming
to the same name.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/uniquify.el | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a7f548cf0b0..0583c16fcd4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * uniquify.el (uniquify-rationalize-file-buffer-names): | 3 | * uniquify.el (uniquify-rationalize-file-buffer-names): |
| 4 | Re-add an interactive spec. | 4 | Re-add an interactive spec. |
| 5 | (uniquify-rationalize-file-buffer-names): Fix corner case when renaming | ||
| 6 | to the same name. | ||
| 5 | 7 | ||
| 6 | * isearch.el (isearch-dehighlight): Remove unused arg `totally'. | 8 | * isearch.el (isearch-dehighlight): Remove unused arg `totally'. |
| 7 | (isearch-update, isearch-done): Adjust calls accordingly. | 9 | (isearch-update, isearch-done): Adjust calls accordingly. |
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 689dffb9618..ea9094da78a 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el | |||
| @@ -194,8 +194,10 @@ this rationalization." | |||
| 194 | (uniquify-item-base (car uniquify-managed)) (buffer-name)) | 194 | (uniquify-item-base (car uniquify-managed)) (buffer-name)) |
| 195 | (uniquify-buffer-file-name (current-buffer)) | 195 | (uniquify-buffer-file-name (current-buffer)) |
| 196 | (current-buffer))) | 196 | (current-buffer))) |
| 197 | (if (null dirname) | 197 | ;; Make sure we don't get confused by outdated uniquify-managed info in |
| 198 | (with-current-buffer newbuf (setq uniquify-managed nil)) | 198 | ;; this buffer. |
| 199 | (with-current-buffer newbuf (setq uniquify-managed nil)) | ||
| 200 | (when dirname | ||
| 199 | (setq dirname (expand-file-name (directory-file-name dirname))) | 201 | (setq dirname (expand-file-name (directory-file-name dirname))) |
| 200 | (let ((fix-list (list (uniquify-make-item base dirname newbuf))) | 202 | (let ((fix-list (list (uniquify-make-item base dirname newbuf))) |
| 201 | items) | 203 | items) |