From: Richard M. Stallman Date: Mon, 4 Aug 1997 03:42:58 +0000 (+0000) Subject: (delay-uniquify-rationalize-file-buffer-names): X-Git-Tag: emacs-20.1~823 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf66807ecde2df70eefee5d52271c102e2695033;p=emacs.git (delay-uniquify-rationalize-file-buffer-names): Don't delete this function from kill-buffer-hook, if it is disabled. --- diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 3ece1e28537..8bb0b734bad 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el @@ -413,9 +413,7 @@ For use on, eg, `kill-buffer-hook', to rationalize *after* buffer deletion." (if (and uniquify-buffer-name-style uniquify-after-kill-buffer-p) (add-hook 'post-command-hook - 'delayed-uniquify-rationalize-file-buffer-names) - (remove-hook 'kill-buffer-hook - 'delay-uniquify-rationalize-file-buffer-names))) + 'delayed-uniquify-rationalize-file-buffer-names))) (defun delayed-uniquify-rationalize-file-buffer-names () "Rerationalize buffer names and remove self from `post-command-hook'.