GNU bug report logs -
#24237
24.5; (elisp)`Extended Menu Items', :filter warning
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 15 Aug 2016 18:07:01 UTC
Severity: minor
Found in version 24.5
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #34 received at 24237-done <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 19 Dec 2020 10:54:06 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: larsi <at> gnus.org, 24237 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
>
> > > > > "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."
> >
> > 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.
>
> 1. The manual's description of :filter is entirely
> relevant to this use case - _except_ for that last
> paragraph, which apparently erroneously assumes that
> the only possible use of an extended menu item with
> :filter is in a menu.
Since that last paragraph explicitly talks about displaying or acting
on menus, I see no reason to change anything there.
> a. You can bind an extended menu item that uses
> :filter to a keyboard key, to give it a
> dynamic binding (explaining what that means
> with an example).
IMO this is a kludge that we don't need to document.
> More generally, `menu-item' is not just about menus
> and menu items. This is not obvious. And in
> particular, it's not obvious that you can make good
> use of :filter with a keyboard key.
menu-item is about menus, as its name says. That it can be used for
other purposes is an implementation detail.
And with that, I'm closing this bug report.
This bug report was last modified 4 years and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.