emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Re: Context menus and mouse-3


From: Drew Adams
Subject: RE: [External] : Re: Context menus and mouse-3
Date: Wed, 21 Jul 2021 17:26:26 +0000

> > I think most of the time, a thing under mouse cursor matters for
> > context-menu instead of mode.
> 
> Obviously, but note that the code that decides what "thing under the
> cursor" is relevant, and which menu entries should be shown for it is
> most likely going to be provided by a mode.
> 
> So I guess what I'm saying is that I disagree with "instead of".

Yes, fair enough.  Several things can be relevant to
determining what's in a "context" menu - including
modes, buffer text under the pointer, and properties
(text, overlay) under the pointer.

Anything having to do with current Emacs "state",
of any kind, can be considered behavioral "context".
Of course, context that is closely related to the
mouse-pointer state is particularly relevant.

It's not just modes.  It's not just text under the
mouse pointer.  It's not "instead of".  Right.
It's anything you (a user or code) want the menu
to be.



reply via email to

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