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 05:07:29 +0000

> I think most of the time, a thing under mouse
> cursor matters for context-menu instead of mode.

Yes, I agree.  A mode can certainly do particular
things, i.e., have menu items specific to it.
But it should generally be possible to act on a
thing that's under the pointer.

(BTW, it's called the mouse "pointer", as opposed
to the text "cursor" - e.g. in the docs.)

That's why `mouse3.el' has this available in the
`mouse-3' menu by default when the region is not
active (when it's active you get a menu for acting
on the region).

There are several kinds of action, for several
kinds of thing, that you can choose from the menu.

By default there's a `Thing at Point' submenu
with items such as these (a given item is enabled
when there's a relevant thing under the pointer):

 _______________________________
 Open URL in Browser
 Visit File
 Visit File in Other Window
 Dired
 Dired in Other Window
 _______________________________
 Describe File
 Describe Function
 Show Code Defining Function
 Describe Variable
 Show Code Defining Variable
 Describe Face
 Describe Package
 Describe Text Properties
 _______________________________
 Highlight Symbol
 Unhighlight Symbol
 Hi-Lock Symbol
 Un-Hi-Lock Symbol
 _______________________________
 Look Up Symbol in Manual
 Search for Symbol
 Eval & Pretty-Print Lisp Sexp
 _______________________________

But of course this is just the default behavior.
A mode can define its own approach to the menu,
as can a user (by customizing).

If flyspell is available and turned on then you
could have an item for using it on the word under
the pointer, i.e., when the pointer is in fact
over a word.  (I didn't include that by default.)






reply via email to

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