From unknown Fri Aug 15 20:22:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7710 <7710@debbugs.gnu.org> To: bug#7710 <7710@debbugs.gnu.org> Subject: Status: lisp/emacs-lisp/easymenu.el - Correct easy-menu-define doctring Reply-To: bug#7710 <7710@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:22:44 +0000 retitle 7710 lisp/emacs-lisp/easymenu.el - Correct easy-menu-define doctring reassign 7710 emacs submitter 7710 Jari Aalto severity 7710 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 22 11:50:09 2010 Received: (at submit) by debbugs.gnu.org; 22 Dec 2010 16:50:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVRtB-0005wn-3l for submit@debbugs.gnu.org; Wed, 22 Dec 2010 11:50:09 -0500 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVRt7-0005wF-Qx for submit@debbugs.gnu.org; Wed, 22 Dec 2010 11:50:07 -0500 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh01-2.mail.saunalahti.fi (Postfix) with SMTP id 097308C73D for ; Wed, 22 Dec 2010 18:56:40 +0200 (EET) Received: from emh04.mail.saunalahti.fi ([62.142.5.110]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A0464F0482F; Wed, 22 Dec 2010 18:56:40 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id DCB3241BE3 for ; Wed, 22 Dec 2010 18:56:38 +0200 (EET) From: Jari Aalto To: submit@debbugs.gnu.org Subject: lisp/emacs-lisp/easymenu.el - Correct easy-menu-define doctring Mail-Copies-To: poster Date: Wed, 22 Dec 2010 18:56:37 +0200 Message-ID: <87y67hvj96.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Antivirus: VAMS X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Package: emacs Version: 23.2+1-5.1 Severity: normal doc-view.el uses: (easy-menu-define doc-view-menu doc-view-mode-map "Menu for Doc View mode." '("DocView" ["Toggle display" doc-view-toggle-display] ("Continuous" ... The argument ENABLE appears to be optional. The patch adjusts the docstring. It was generated against: 0804bcf 2010-12-22 Merge branch 'master' of git://git.sv.gnu.org/emacs 2010-12-22 Jari Aalto * emacs-lisp/easymenu.el (easy-menu-define): Correct docstring; change from [NAME CALLBACK ENABLE] to [NAME CALLBACK [ENABLE]] -- System Information Debian Release: squeeze/sid APT Prefers testing APT policy: (990, testing) (500, unstable) (1, experimental) Architecture: amd64 Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux Locale: LANG=en_DK.UTF-8 -- Versions of packages `emacs depends on'. Depends: emacs23 23.2+1-5.1 GNU Emacs is the extensible self-documenting emacs23-lucid 23.2+1-5.1 GNU Emacs is the extensible self-documenting emacs23-nox 23.2+1-5.1 GNU Emacs is the extensible self-documenting --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-easy-menu-define-Correct-description-to-NAME-CALLBAC.patch >From 901e3765fcad591da9a77017b9c8008cfe33ade7 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Wed, 22 Dec 2010 18:51:17 +0200 Subject: [PATCH] (easy-menu-define): Correct description to [NAME CALLBACK [ENABLE]] Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- lisp/emacs-lisp/easymenu.el | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el index 9992861..f8e9c07 100644 --- a/lisp/emacs-lisp/easymenu.el +++ b/lisp/emacs-lisp/easymenu.el @@ -71,7 +71,7 @@ whenever this expression's value is non-nil. The rest of the elements in MENU, are menu items. -A menu item is usually a vector of three elements: [NAME CALLBACK ENABLE] +A menu item is usually a vector of three elements: [NAME CALLBACK [ENABLE]] NAME is a string--the menu item name. @@ -79,7 +79,8 @@ CALLBACK is a command to run when the item is chosen, or a list to evaluate when the item is chosen. ENABLE is an expression; the item is enabled for selection -whenever this expression's value is non-nil. +whenever this expression's value is non-nil. If not defined, the menu item +is always shown. Alternatively, a menu item may have the form: -- 1.7.2.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 23 10:02:30 2010 Received: (at 7710) by debbugs.gnu.org; 23 Dec 2010 15:02:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVmgY-0006IB-3X for submit@debbugs.gnu.org; Thu, 23 Dec 2010 10:02:30 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVmgW-0006Hy-UD; Thu, 23 Dec 2010 10:02:29 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEANr0Ek3O+ILX/2dsb2JhbACkJ3TBKIVKBIRljhs X-IronPort-AV: E=Sophos;i="4.60,219,1291611600"; d="scan'208";a="86383652" Received: from 206-248-130-215.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.215]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Dec 2010 10:09:05 -0500 Received: by ceviche.home (Postfix, from userid 20848) id AD9AC6610E; Thu, 23 Dec 2010 10:09:05 -0500 (EST) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7710: lisp/emacs-lisp/easymenu.el - Correct easy-menu-define doctring Message-ID: References: <87y67hvj96.fsf@picasso.cante.net> Date: Thu, 23 Dec 2010 10:09:05 -0500 In-Reply-To: <87y67hvj96.fsf@picasso.cante.net> (Jari Aalto's message of "Wed, 22 Dec 2010 18:56:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7710 Cc: 7710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) close 7710 thanks > The argument ENABLE appears to be optional. It's not just that it's optional but that there is an alternative format, and in that alternative format [NAME CALLBACK] is valid. The docstring says a bit further down from your change: [...] Alternatively, a menu item may have the form: [ NAME CALLBACK [ KEYWORD ARG ] ... ] Where KEYWORD is one of the symbols defined below. [...] -- Stefan From unknown Fri Aug 15 20:22:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 21 Jan 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator