summaryrefslogtreecommitdiff
path: root/lisp/uniquify.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-10-30 23:28:12 +0000
committerMiles Bader <miles@gnu.org>2007-10-30 23:28:12 +0000
commitba69b876ac836a88877dab99e6fc2352dd36c855 (patch)
treeea26f4dfdee15465752767ec150b509aae48f52e /lisp/uniquify.el
parent904fac674eb51808091bed8f7c608745e0dfc0b8 (diff)
parent93c5a976a01b25f96bb135086d8fcd3a869b3fb9 (diff)
downloademacs-ba69b876ac836a88877dab99e6fc2352dd36c855.tar.gz
Merge from emacs--rel--22
Patches applied: * emacs--rel--22 (patch 138-139) - Update from CVS Revision: emacs@sv.gnu.org/emacs--devo--0--patch-914
Diffstat (limited to 'lisp/uniquify.el')
-rw-r--r--lisp/uniquify.el12
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el
index 8226c65cbb9..254832ed700 100644
--- a/lisp/uniquify.el
+++ b/lisp/uniquify.el
@@ -460,15 +460,9 @@ in `uniquify-list-buffers-directory-modes', otherwise returns nil."
;; Buffer deletion
;; Rerationalize after a buffer is killed, to reduce coinciding buffer names.
-;; This mechanism uses `kill-buffer-hook', which runs *before* deletion.
-;; That means that the kill-buffer-hook function cannot just delete the
-;; buffer -- it has to set something to do the rationalization *later*.
-;; It actually puts another function on `post-command-hook'. This other
-;; function runs the rationalization and then removes itself from the hook.
-;; Is there a better way to accomplish this?
-;; (This ought to set some global variables so the work is done only for
-;; buffers with names similar to the deleted buffer. -MDE)
-
+;; This mechanism uses `kill-buffer-hook', which runs *before* deletion, so
+;; it calls `uniquify-rerationalize-w/o-cb' to rerationalize the buffer list
+;; ignoring the current buffer (which is going to be deleted anyway).
(defun uniquify-maybe-rerationalize-w/o-cb ()
"Re-rationalize buffer names, ignoring current buffer.
For use on `kill-buffer-hook'."