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#24237: 24.5; (elisp)`Extended Menu Items', :filter warning Date: Sat, 19 Dec 2020 12:47:28 +0200 Message-ID: <83y2hut6m7.fsf@gnu.org> References: <<<6c4f5089-43fa-4ca1-a656-1ec1684df960@default>>> <<<87v9d67ox6.fsf@gnus.org>>> <<<70cc884d-4f32-4a2e-b3f5-181709f2ca29@default>>> <<<83blexeod5.fsf@gnu.org>>> <> <<83v9d5d1yd.fsf@gnu.org>> <846fcdf8-9b51-4246-8200-b067e7006e24@default> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 24237@debbugs.gnu.org, monnier@iro.umontreal.ca To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 11:48:11 2020 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 1kqZmU-0004yq-Ru for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 11:48:10 +0100 Original-Received: from localhost ([::1]:35694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqZmT-0003Kv-Sz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 05:48:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqZmM-0003JZ-Ah for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 05:48:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqZmM-0004lx-3E for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 05:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqZmM-0001zT-1M for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 05:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Dec 2020 10:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24237 X-GNU-PR-Package: emacs Original-Received: via spool by 24237-submit@debbugs.gnu.org id=B24237.16083748747637 (code B ref 24237); Sat, 19 Dec 2020 10:48:01 +0000 Original-Received: (at 24237) by debbugs.gnu.org; 19 Dec 2020 10:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:40881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqZmE-0001z7-KD for submit@debbugs.gnu.org; Sat, 19 Dec 2020 05:47:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqZmC-0001yu-O5 for 24237@debbugs.gnu.org; Sat, 19 Dec 2020 05:47:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54047) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqZm7-0004h2-3E; Sat, 19 Dec 2020 05:47:47 -0500 Original-Received: from [176.228.60.248] (port=4586 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqZm6-0004Zy-1c; Sat, 19 Dec 2020 05:47:46 -0500 In-Reply-To: <846fcdf8-9b51-4246-8200-b067e7006e24@default> (message from Drew Adams on Sun, 13 Dec 2020 11:52:53 -0800 (PST)) 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" Xref: news.gmane.io gmane.emacs.bugs:196376 Archived-At: > Date: Sun, 13 Dec 2020 11:52:53 -0800 (PST) > From: Drew Adams > Cc: larsi@gnus.org, 24237@debbugs.gnu.org, > Stefan Monnier > > > > > "use of a `menu-item' construct with a :filter > > > to create a conditional _keyboard_ key binding. > > > In such a case, the `menu-item' construct is not > > > a real menu item - it is not placed on any menu." > > > > That doesn't explain anything to me, sorry. > > Sorry. Does an example help? > > (global-set-key > "\C-o" > '`(menu-item > "" forward-char > :filter (lambda (cmd) > (if (integerp prefix-arg) nil cmd)))) If this is never placed on the menu bar or on any pop-down menu, then what the manual says is not relevant, because redisplay only considers the menus that need to be displayed.