* 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.
(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)