help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable menu bar mode


From: B. T. Raven
Subject: Re: Disable menu bar mode
Date: Mon, 18 Dec 2017 15:39:39 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 12/13/2017 7:55 PM, Rusi wrote:
Doc for menu-bar-mode says (among other things):

| If called from Lisp, enable Menu Bar mode if ARG is omitted or nil.

That this seems backwards is one thing

The other is that neither of these seem to work (ie turn off menu-bar)

(menu-bar-mode t)
(menu-bar-mode nil)

This does:

(menu-bar-mode 0)

Can someone confirm?


Emacs version 25.1.1


On 25.3 it seems to be working as advertised.

"
(menu-bar-mode &optional ARG)

Toggle display of a menu bar on each frame (Menu Bar mode).
With a prefix argument ARG, enable Menu Bar mode if ARG is
positive, and disable it otherwise.  If called from Lisp, enable
Menu Bar mode if ARG is omitted or nil.
"


You can turn it off with menubar > options > show/hide and then on by evaluating (menu-bar-mode [nil])
or
M-x menu-bar-mode

(menu-bar-mode 0) evaluated turns it off because 0 is not positive.

Ed


reply via email to

[Prev in Thread] Current Thread [Next in Thread]