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=f9d15bdf681fdd418bd51c4325704d127b7814bc;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 28f8075..4a141b7 100644 --- a/elpher.el +++ b/elpher.el @@ -2126,7 +2126,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)