all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Disable menu bar mode
Date: Mon, 18 Dec 2017 17:45:33 -0800 (PST)	[thread overview]
Message-ID: <6eb917e5-a6a3-46b2-b6c5-7b2488647935@googlegroups.com> (raw)
In-Reply-To: <p19ccu01dk3@news7.newsguy.com>

On Tuesday, December 19, 2017 at 3:10:46 AM UTC+5:30, B. T. Raven wrote:
> 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

My init has
(scroll-bar-mode 0)
(tool-bar-mode 0)
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
;(fringe-mode 1)
;(menu-bar-mode 0)

Has been so for years…

[The menu-bar-mode was probably commented out after I started using org mode]

IOW the complaint is with the confusing and incomplete documentation:
«nil = true (turn on)?? So what is false then?»


  reply	other threads:[~2017-12-19  1:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-14  1:55 Disable menu bar mode Rusi
2017-12-14  2:30 ` Emanuel Berg
2017-12-14  2:38 ` Emanuel Berg
2017-12-14  2:49   ` Kaushal Modi
     [not found]   ` <mailman.5687.1513219781.27995.help-gnu-emacs@gnu.org>
2017-12-14  3:11     ` Emanuel Berg
2017-12-14  5:13       ` Kaushal Modi
     [not found]       ` <mailman.5689.1513228434.27995.help-gnu-emacs@gnu.org>
2017-12-14  5:42         ` Emanuel Berg
2017-12-14 14:37           ` Stefan Monnier
2017-12-18 21:39 ` B. T. Raven
2017-12-19  1:45   ` Rusi [this message]
2017-12-19  2:37     ` Emanuel Berg
2017-12-19  2:37     ` Drew Adams
     [not found]     ` <mailman.5961.1513651377.27995.help-gnu-emacs@gnu.org>
2017-12-19 13:52       ` Rusi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6eb917e5-a6a3-46b2-b6c5-7b2488647935@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.