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: Emanuel Berg
Subject: Re: Disable menu bar mode
Date: Thu, 14 Dec 2017 03:30:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

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 whole doc string says:

    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.

The rules are the same for Lisp and interactive
use what I can see:

(menu-bar-mode)       ; omitted      -> on
(menu-bar-mode  nil)  ; nil          -> on
(menu-bar-mode  t)    ; positive     -> on
(menu-bar-mode  1)    ; ... etc.
(menu-bar-mode  0)    ; nonpositive  -> OFF
(menu-bar-mode -1)    ; ... etc.

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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