From: Alex Schroeder Date: Fri, 3 Jul 2020 16:18:46 +0000 (+0200) Subject: tabulated-list-revert-hook must have a local add X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=14cd726993f266d890dcef7b582d173a97926377;p=elpher.git tabulated-list-revert-hook must have a local add If we add elpher-menu-refresh to the global tabulated-list-revert-hook, then other code that uses tabulated-list-mode will confusingly sometimes end up creating the elpher-menu. That's not good. --- diff --git a/elpher.el b/elpher.el index f68a247..a4c8831 100644 --- a/elpher.el +++ b/elpher.el @@ -2131,7 +2131,7 @@ In Elpher Menu mode, the following commands are defined: \\[Buffer-menu-backup-unmark] Back up a line and remove marks. \\[revert-buffer] Update the list of buffers. \\[Buffer-menu-bury] Bury the buffer listed on this line." - (add-hook 'tabulated-list-revert-hook 'elpher-menu-refresh)) + (add-hook 'tabulated-list-revert-hook 'elpher-menu-refresh nil t)) (defvar elpher-title nil)