From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69306: 30.0.50; defining menu-items with :enable enables them unconditionally Date: Thu, 22 Feb 2024 08:41:15 +0200 Message-ID: <86bk89m25w.fsf@gnu.org> References: <87zfvtmm5h.fsf@strawberrytea.xyz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69306@debbugs.gnu.org To: StrawberryTea Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 22 07:41:55 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rd2mG-0009ro-In for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Feb 2024 07:41:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rd2m5-00028s-Ew; Thu, 22 Feb 2024 01:41:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rd2m3-00028D-MO for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2024 01:41:39 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rd2m3-00083W-8Z for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2024 01:41:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rd2mP-00040L-UL for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2024 01:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Feb 2024 06:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69306 X-GNU-PR-Package: emacs Original-Received: via spool by 69306-submit@debbugs.gnu.org id=B69306.170858410915364 (code B ref 69306); Thu, 22 Feb 2024 06:42:01 +0000 Original-Received: (at 69306) by debbugs.gnu.org; 22 Feb 2024 06:41:49 +0000 Original-Received: from localhost ([127.0.0.1]:55647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rd2mC-0003zi-O2 for submit@debbugs.gnu.org; Thu, 22 Feb 2024 01:41:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rd2mB-0003zJ-8s for 69306@debbugs.gnu.org; Thu, 22 Feb 2024 01:41:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rd2li-0007zL-3d; Thu, 22 Feb 2024 01:41:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IiQubcQyVsHO/Vub9l7s0yWIsw82ZGhHQVC1cNHCiyA=; b=pRSp9cEaVlX/ Bbu5yzoM2lty0HjUVMVwBdtWSFmAi8E4t2dkRCXe6I4xSPeSEk+OMT345z++8aB223wW51QoHcFyR 5YDFkx1VXf+kwwO3i2dZ6/9PiBtg25RqfWN1jPcgGMn7bajLuItnspKk5FrmMS6EzoHKpL2XeunF9 OB+O2P4M9txTg4r9VMc1E4PAB1OCKUk/Ka+DsP6xYYkHTwDO2+8h5dPvyvwIe6UYh4eg8HtiPsnyU OAw5A75KdoBD6AkVAwCy+XaYc7UJ0o2akBysNsqEAFbi53reeouUgzZQyMAvoiZTGZcqnOEghyCJ0 J6GDsqh6uwrjR+AXc3tMHQ==; In-Reply-To: <87zfvtmm5h.fsf@strawberrytea.xyz> (message from StrawberryTea on Wed, 21 Feb 2024 17:26:02 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280432 Archived-At: > From: StrawberryTea > Date: Wed, 21 Feb 2024 17:26:02 -0600 > > Hi. I am not sure if I open a vanilla Emacs session and evaluate: > (defvar hello nil) > (setq hello nil) > (define-key global-map (kbd "C-M-S-f") '(menu-item "" delete-backward-char :enable hello)) > > and then press C-M-S-f, the delete-backward-char menu item will be > enabled, even though hello is nil. Enabled where? After evaluating the above, I don't see your menu item anywhere (since it is not added to any existing menu, I guess?), so I'm not sure what you are describing here. Is some step missing from the recipe? Can you show a full recipe starting from "emacs -Q"?