diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2007-10-28 16:48:51 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2007-10-28 16:48:51 +0000 |
commit | 62f7f21b371706f3e53e524087f777cbe2b61bd1 (patch) | |
tree | bc4a82d50ffc634d0959ea9ebea11c9f6cf3984e /lisp/uniquify.el | |
parent | 93c5a976a01b25f96bb135086d8fcd3a869b3fb9 (diff) | |
download | emacs-62f7f21b371706f3e53e524087f777cbe2b61bd1.tar.gz |
*** empty log message ***
Diffstat (limited to 'lisp/uniquify.el')
-rw-r--r-- | lisp/uniquify.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index f6bfd432a16..a9e5fbea946 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el @@ -458,15 +458,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'." |