(uniquify-rationalize-file-buffer-names): Fix corner case when renaming
to the same name.
This commit is contained in:
parent
2eec3e8edf
commit
9890ec7d19
2 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
* uniquify.el (uniquify-rationalize-file-buffer-names):
|
||||
Re-add an interactive spec.
|
||||
(uniquify-rationalize-file-buffer-names): Fix corner case when renaming
|
||||
to the same name.
|
||||
|
||||
* isearch.el (isearch-dehighlight): Remove unused arg `totally'.
|
||||
(isearch-update, isearch-done): Adjust calls accordingly.
|
||||
|
|
|
|||
|
|
@ -194,8 +194,10 @@ this rationalization."
|
|||
(uniquify-item-base (car uniquify-managed)) (buffer-name))
|
||||
(uniquify-buffer-file-name (current-buffer))
|
||||
(current-buffer)))
|
||||
(if (null dirname)
|
||||
(with-current-buffer newbuf (setq uniquify-managed nil))
|
||||
;; Make sure we don't get confused by outdated uniquify-managed info in
|
||||
;; this buffer.
|
||||
(with-current-buffer newbuf (setq uniquify-managed nil))
|
||||
(when dirname
|
||||
(setq dirname (expand-file-name (directory-file-name dirname)))
|
||||
(let ((fix-list (list (uniquify-make-item base dirname newbuf)))
|
||||
items)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue