# HG changeset patch # User Karl Heuer # Date 762237177 0 # Node ID b593e9df4b4407fc30605a6def41a5895c703428 # Parent 19eaf70457d49436697e9671cfbff4e0ef81cf78 (menu-bar-mode): Make menu-bar-mode without an argument toggle display of a menu bar. diff -r 19eaf70457d4 -r b593e9df4b44 lisp/menu-bar.el --- a/lisp/menu-bar.el Sat Feb 26 04:24:37 1994 +0000 +++ b/lisp/menu-bar.el Sat Feb 26 04:32:57 1994 +0000 @@ -319,7 +319,6 @@ With a numeric argument, if the argument is negative, turn off menu bars; otherwise, turn on menu bars." (interactive "P") - (if flag (setq flag (prefix-numeric-value flag))) ;; Obtain the current setting by looking at default-frame-alist. (let ((menu-bar-mode @@ -328,7 +327,7 @@ ;; Tweedle it according to the argument. (setq menu-bar-mode (if (null flag) (not menu-bar-mode) - (or (not (numberp flag)) (>= flag 0)))) + (> (prefix-numeric-value flag) 0))) ;; Apply it to default-frame-alist. (let ((parameter (assq 'menu-bar-lines default-frame-alist)))