[Top][All Lists]

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

Re: Context menus and mouse-3

From: Juri Linkov
Subject: Re: Context menus and mouse-3
Date: Wed, 21 Jul 2021 02:15:47 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> such as a long list of candidates in flyspell-mode.  But flyspell-mode
>> already overrides the menu with own [down-mouse-3], and rewriting it to
>> use context-menu-overriding-function might cause backward-incompatibility 
>> bugs.
> Yet, it is definitely one of the packages which should use context-menu.

I realized now that context-menu-overriding-function is not needed
since it's possible just to reverse the priorities, so the
functions at the end of the list in context-menu-functions
will have higher priority.  Then for example, flyspell-context-menu
called as the last function can remove all items added by earlier calls
and return a new menu with only own items.

reply via email to

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