From: Juri Linkov <juri@linkov.net>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 50552@debbugs.gnu.org
Subject: bug#50552: 28.0.50; Add context-menu-occur
Date: Sun, 12 Sep 2021 20:59:06 +0300 [thread overview]
Message-ID: <87o88xu13p.fsf@mail.linkov.net> (raw)
In-Reply-To: <87ilz5d9a1.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 12 Sep 2021 16:54:30 +0000")
> the below patch adds the commands occur-word-at-mouse and
> occur-symbol-at-mouse, and a function for context-menu-mode to occur
> words or symbols where the context menu was invoked.
>
> Would there be any interest in adding such a functionality?
Thanks. There is a new function 'thing-at-mouse' with a new arg 'click'
added today that you can use instead of 'thing-at-point'.
You can see an example in lisp/net/dictionary.el.
> diff --git a/lisp/mouse.el b/lisp/mouse.el
> index 7d3ed9a0e4..3590e27e3e 100644
> --- a/lisp/mouse.el
> +++ b/lisp/mouse.el
>[...]
> +(defun context-menu-occur (menu)
The default set of context menus in mouse.el contains only menus
created from the existing non-context menus. All new context menus
should be added to their respective packages. So please move
context-menu-occur to replace.el.
Another example prog-context-menu in lisp/progmodes/prog-mode.el also
demonstrates how context menus should belong to the package where they
are used. And prog-context-menu is similar to context-menu-occur,
so it should have the name prefix of the package: occur-context-menu.
next prev parent reply other threads:[~2021-09-12 17:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-12 16:54 bug#50552: 28.0.50; Add context-menu-occur Philip Kaludercic
2021-09-12 17:59 ` Juri Linkov [this message]
2021-09-12 19:09 ` Philip Kaludercic
2021-09-13 8:28 ` Juri Linkov
2021-09-14 20:45 ` Philip Kaludercic
2021-09-15 7:14 ` Juri Linkov
2021-09-28 20:00 ` Philip Kaludercic
2021-09-29 7:19 ` Juri Linkov
2021-09-29 10:00 ` Philip Kaludercic
2021-09-29 17:31 ` Juri Linkov
2021-10-02 19:29 ` Juri Linkov
2021-10-01 16:28 ` Philip Kaludercic
2021-10-02 19:25 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o88xu13p.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=50552@debbugs.gnu.org \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.