From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Disable menu bar mode Date: Thu, 14 Dec 2017 03:38:23 +0100 Organization: Aioe.org NNTP Server Message-ID: <86efnynie8.fsf@zoho.com> References: <7816d4f5-f412-4a7e-8aa2-ce45a489e9ed@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513219230 27251 195.159.176.226 (14 Dec 2017 02:40:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 02:40:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 14 03:40:23 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePJRe-0006cn-VG for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 03:40:23 +0100 Original-Received: from localhost ([::1]:38855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePJRk-0000w1-3Z for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Dec 2017 21:40:28 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: ki1qNFiEgsPs0GmXn3Dk/A.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Mail-Copies-To: never Cancel-Lock: sha1:finHEaXm/0h0kwXGuIhBJ4MxOv8= X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:221232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115345 Archived-At: Rusi wrote: > | If called from Lisp, enable Menu Bar mode > | if ARG is omitted or nil. > > That this seems backwards is one thing Use this so you don't have to bother with the confusing argument: (defun toggle-menu-bar-mode () (interactive) (menu-bar-mode (when menu-bar-mode 0)) ) I got it from Two-Edge [1], pretty clever, the old joker... [1] http://elfquest.wikia.com/wiki/Two-Edge -- underground experts united http://user.it.uu.se/~embe8573