[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Context Menu

From: Juri Linkov
Subject: Re: New Context Menu
Date: Fri, 20 Aug 2021 19:49:03 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> >> But please note that currently when you select a menu item
>> >> using the keyboard, many commands will fail with
>> >>
>> >>   (error "Command must be bound to an event with parameters")
>> >
>> > Those commands should ideally be fixed to not signal such errors,
>> > because that's not good UI on TTY frames.  Commands that cannot be
>> > fixed shouldn't appear in the context menus popped on TTY frames to
>> > begin with.
>> What would be the best strategy for fixing these commands?  This error
>> is signaled for all commands that have (interactive "e").  Then such
>> interactive spec should be removed from all commands used in the menu?
> I guess so.  Why does it make sense for commands invoked from the
> menus to have the "e" interactive spec?

There are too many commands that have the "e" interactive spec.
It would be much simpler not to signal an error for them, but produce
a fake event where the clicked position is set to the position of point.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]