changeset 36229:779e2936512e

(msb-mode): Call the update-buffers function explicitly with a FORCE argument.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 20 Feb 2001 15:24:39 +0000
parents 385c53ce2e21
children 56577cf3e384
files lisp/msb.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/msb.el	Tue Feb 20 14:54:50 2001 +0000
+++ b/lisp/msb.el	Tue Feb 20 15:24:39 2001 +0000
@@ -1146,10 +1146,11 @@
   (if msb-mode
       (progn
 	(add-hook 'menu-bar-update-hook 'msb-menu-bar-update-buffers)
-	(remove-hook 'menu-bar-update-hook 'menu-bar-update-buffers))
+	(remove-hook 'menu-bar-update-hook 'menu-bar-update-buffers)
+	(msb-menu-bar-update-buffers t))
     (remove-hook 'menu-bar-update-hook 'msb-menu-bar-update-buffers)
-    (add-hook 'menu-bar-update-hook 'menu-bar-update-buffers))
-  (run-hooks 'menu-bar-update-hook))
+    (add-hook 'menu-bar-update-hook 'menu-bar-update-buffers)
+    (menu-bar-update-buffers t)))
 
 (defun msb-unload-hook ()
   (msb-mode 0))