emacs-devel
[Top][All Lists]
Advanced

[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: Tue, 20 Jul 2021 23:52:28 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> For easier customization, 'context-menu-functions' could be more hook-like,
>
> FWIW, I originally thought of using a `-function` because I expect there
> are situations where you'll want to override the normal menu with a more
> specific one (rather than adding entries only), or move the normal
> menu to a submenu.

The new branch 'feature/context-menu' now includes also the variable
'context-menu-overriding-function' that can override the normal menu.

But I have no idea on which mode to test it.  It makes sense to
override the normal menu in modes that produce too long menus,
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.



reply via email to

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