mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(delay-uniquify-rationalize-file-buffer-names):
Don't delete this function from kill-buffer-hook, if it is disabled.
This commit is contained in:
parent
e65db7b8cf
commit
cf66807ecd
1 changed files with 1 additions and 3 deletions
|
|
@ -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'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue