From unknown Sat Aug 16 18:10:31 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#7754 <7754@debbugs.gnu.org> To: bug#7754 <7754@debbugs.gnu.org> Subject: Status: 24.0.50; easy-menu: fix misnamed keywords Reply-To: bug#7754 <7754@debbugs.gnu.org> Date: Sun, 17 Aug 2025 01:10:31 +0000 retitle 7754 24.0.50; easy-menu: fix misnamed keywords reassign 7754 emacs submitter 7754 "Drew Adams" severity 7754 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 10:20:25 2010 Received: (at submit) by debbugs.gnu.org; 29 Dec 2010 15:20:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXxpB-0004Pr-5Q for submit@debbugs.gnu.org; Wed, 29 Dec 2010 10:20:25 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXxp9-0004Pg-L8 for submit@debbugs.gnu.org; Wed, 29 Dec 2010 10:20:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXxvo-0006lJ-55 for submit@debbugs.gnu.org; Wed, 29 Dec 2010 10:27:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:47544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXxvo-0006lF-2s for submit@debbugs.gnu.org; Wed, 29 Dec 2010 10:27:16 -0500 Received: from [140.186.70.92] (port=42871 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXxvn-0005lE-1Z for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2010 10:27:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXxvk-0006ka-Ar for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2010 10:27:14 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:61184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXxvk-0006kS-4K for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2010 10:27:12 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBTFR72I021984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Dec 2010 15:27:09 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBTFMllN024029 for ; Wed, 29 Dec 2010 15:27:07 GMT Received: from abhmt020.oracle.com by acsmt354.oracle.com with ESMTP id 913885981293636366; Wed, 29 Dec 2010 07:26:06 -0800 Received: from dradamslap1 (/10.159.216.195) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 Dec 2010 07:26:05 -0800 From: "Drew Adams" To: Subject: 24.0.50; easy-menu: fix misnamed keywords Date: Wed, 29 Dec 2010 07:26:08 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcunbLcFINI/HDEiSVKbV+hI6XgEWQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.4 (------) 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: -6.4 (------) Easy-menu uses a non-standard :active keyword to mean what :enable means in regular menus. Similarly, it used to use :included to mean what :visible means. The latter inconsistency was fixed long ago, by aliasing. The former has never been fixed. I see no conflict in the code - no reason not to just use :enable (e.g. alias :active to :enable and ultimately deprecate :active). >From the `easy-menu-define' doc string (in two places, one for a "menu", the other for an "item": :visible INCLUDE INCLUDE is an expression; this (menu|item) is only visible if this expression has a non-nil value. `:included' is an alias for `:visible'. :active ENABLE ENABLE is an expression; the (menu|item) is enabled for selection whenever this expression's value is non-nil. I see no reason to treat the misnamed :active any different from the misnamed :included. Note: I sent this request to emacs-devel on 2009-05-22, but got no response. Here is that mail: > From: Drew Adams Sent: Friday, May 22, 2009 3:07 PM > > Why does easymenu.el use :active instead of :enable? This > inconsistency just makes things more complex for users, without > any gain (that I can see). > > The code even translates :active to :enable! Why not just > accept :enable? And then perhaps we could sooner or later > deprecate :active. > > Shouldn't we just choose one or the other, :enable or > :active, and stick to it consistently? In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-12-20 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 11:56:45 2010 Received: (at 7754) by debbugs.gnu.org; 29 Dec 2010 16:56:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXzKP-0006Rk-1K for submit@debbugs.gnu.org; Wed, 29 Dec 2010 11:56:45 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXzKM-0006RY-Kg for 7754@debbugs.gnu.org; Wed, 29 Dec 2010 11:56:43 -0500 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBTH3Y0G003227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <7754@debbugs.gnu.org>; Wed, 29 Dec 2010 17:03:35 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBTG5tj4014019 for <7754@debbugs.gnu.org>; Wed, 29 Dec 2010 17:03:33 GMT Received: from abhmt020.oracle.com by acsmt353.oracle.com with ESMTP id 888340901293642126; Wed, 29 Dec 2010 09:02:06 -0800 Received: from dradamslap1 (/10.159.216.195) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 Dec 2010 09:02:06 -0800 From: "Drew Adams" To: <7754@debbugs.gnu.org> References: Subject: RE: bug#7754: 24.0.50; easy-menu: fix misnamed keywords Date: Wed, 29 Dec 2010 09:02:10 -0800 Message-ID: <3D8FD1435DEC4082934710B1FF74CD59@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcunbLcFINI/HDEiSVKbV+hI6XgEWQADR/QQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 In-Reply-To: X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 7754 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: -6.4 (------) Further browsing indicates that :active is a leftover from XEmacs. E.g., this code in vhdl-mode.el: ["Rescan Directory" vhdl-speedbar-rescan-hierarchy :active (save-excursion (beginning-of-line) (looking-at "[0-9]+:")) ,(if (featurep 'xemacs) :active :visible) (not vhdl-speedbar-show-projects)] ^^^^^^^^^^^^^^^^^^^^^^^^^^ From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 21:06:56 2011 Received: (at 7754) by debbugs.gnu.org; 14 Jan 2011 02:06:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PdZ43-0000lu-Tj for submit@debbugs.gnu.org; Thu, 13 Jan 2011 21:06:56 -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 1PdZ42-0000le-7L; Thu, 13 Jan 2011 21:06:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEALhAL01FxIbi/2dsb2JhbACkTHS8b4VMBIRojio X-IronPort-AV: E=Sophos;i="4.60,320,1291611600"; d="scan'208";a="88022768" Received: from 69-196-134-226.dsl.teksavvy.com (HELO ceviche.home) ([69.196.134.226]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 13 Jan 2011 21:14:01 -0500 Received: by ceviche.home (Postfix, from userid 20848) id B6746660C9; Thu, 13 Jan 2011 21:14:00 -0500 (EST) From: Stefan Monnier To: "Drew Adams" Subject: Re: bug#7754: 24.0.50; easy-menu: fix misnamed keywords Message-ID: References: Date: Thu, 13 Jan 2011 21:14:00 -0500 In-Reply-To: (Drew Adams's message of "Wed, 29 Dec 2010 07:26:08 -0800") 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: 7754 Cc: 7754@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 7754 thanks > Easy-menu uses a non-standard :active keyword to mean what :enable means > in regular menus. Similarly, it used to use :included to mean what > :visible means. The latter inconsistency was fixed long ago, by > aliasing. The former has never been fixed. Fixed, thanks, Stefan From unknown Sat Aug 16 18:10:31 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, 11 Feb 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