From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Disable menu bar mode Date: Thu, 14 Dec 2017 05:13:38 +0000 Message-ID: References: <7816d4f5-f412-4a7e-8aa2-ce45a489e9ed@googlegroups.com> <86efnynie8.fsf@zoho.com> <86a7ymngu9.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1513228460 7394 195.159.176.226 (14 Dec 2017 05:14:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 05:14:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 14 06:14:16 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 1ePLqX-0001Zf-Pg for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 06:14:13 +0100 Original-Received: from localhost ([::1]:39198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePLqe-0003l5-T2 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Dec 2017 00:14:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePLqB-0003kw-Ui for help-gnu-emacs@gnu.org; Thu, 14 Dec 2017 00:13:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePLqA-0002VP-OK for help-gnu-emacs@gnu.org; Thu, 14 Dec 2017 00:13:51 -0500 Original-Received: from mail-yb0-x232.google.com ([2607:f8b0:4002:c09::232]:46653) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePLqA-0002V6-Is for help-gnu-emacs@gnu.org; Thu, 14 Dec 2017 00:13:50 -0500 Original-Received: by mail-yb0-x232.google.com with SMTP id g15so2594423ybc.13 for ; Wed, 13 Dec 2017 21:13:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ATPSKR93ePD/scNp/zsHWBrqczExuHKPWGcl4QWeO/M=; b=Vsb/41MyaN6tPntKPnlCeGo/iZKlQ5EsV5DaWHcRyp0plYrCAhbk73xtTx/b1TE4Sg V5kzdCGcXDq9hsstO/baVWFpcXd2nZCMTgH7w55i08ya3YImxsluPXIn88M8uLvSB/lR QtFCG4F7u+32drEuiqJxz+TJXW9osZxE5/ESLr5hmFG4dNbAdL6MLEqsLFyBovXaqMdU GwCGoKxqgPxwHmGia0cb+Z6LFhN+LqWgjTCZEdOs+NJVjZjHmLkyqjENm91wozG62QmK rEkNXFN8EM2Wl8a+uFvgdgPucAx31PzmG/jN/BeXOxj7/uPAaQ7VmuvyJbgapxHNe6p5 795A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ATPSKR93ePD/scNp/zsHWBrqczExuHKPWGcl4QWeO/M=; b=UXepED6sKtx/9d6Sm6CSTqQv/aDJM2TjAO7LWR0fe+ly7iZl0ZKVR39zESWZwDcV/E uhzksQYTMz+lsYTP/XKW475cbueWUa+WIjqkPAuz2R0wM+Y1I+q/tkaHNKfSMBfTBa2L BdXi25YnMu7YWZF9PpNY0AXbtpG5UYUBoCgwN2NlpVOYVQgIwkwXE6moAKa73fFCeY/V wsGycby5mAKmpdhIRzrwUcNMYXQjtLReI3zAsfywIjX39tOdQ3U2kbpU0tMBVkb1RCo8 cHiNraB7Wv1klLdSxz22scpSkdn5/gNYXXK3ZK+zhhhBAEeCphTeB4z1myCVj9I8T7Lr +ZdA== X-Gm-Message-State: AKGB3mKb41Erjj9P7xyHFV/knyckxbtpIswJNFFzLo89Mzl4e1yMUOMn q/Hee+VWyl1Cf6J2+BiOfzmb0J0pHuPidQQHj4U= X-Google-Smtp-Source: ACJfBosI1LS9gdBiL1yWSGD1HNnhwNlXjokt8+iwOt/nQZ2dLcAySJVlgIAShyYNIAVP31ZIYJg2aZIrWL3opLrYv/I= X-Received: by 10.37.22.4 with SMTP id 4mr1048138ybw.28.1513228429662; Wed, 13 Dec 2017 21:13:49 -0800 (PST) In-Reply-To: <86a7ymngu9.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c09::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:115348 Archived-At: On Wed, Dec 13, 2017 at 10:15 PM Emanuel Berg wrote: > Kaushal Modi wrote: > > > menu-bar-mode is a minor mode. > > > > So you do just M-x menu-bar-mode to toggle it > > Well, you menu bar users should know :) > Well, I don't use menu bars. Even if I had come across an unknown mode, say smart-ass-mode, I could first of all easily guess that it's either a major mode or a minor mode. If I need to call it interactively or toggle then it's most likely a minor mode. But there is no need to guess..By calling M-x xref-find-definitions (bound by default to M-.) with point on "smart-ass-mode" (in emacs-lisp-mode buffer), I can directly jump to the elisp definition and figure out what it actually is. So I did that with menu-bar-mode, and M-. jumped to: (define-minor-mode menu-bar-mode "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. ... And then (emacs) Minor Modes node in the emacs manual talks about using M-x MINOR-MODE to toggle that mode. -- Kaushal Modi