]> git.eshelyaron.com Git - emacs.git/commit
Many improvements for Context Menus (bug#9054)
authorJuri Linkov <juri@linkov.net>
Wed, 22 Sep 2021 17:08:45 +0000 (20:08 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 22 Sep 2021 17:08:45 +0000 (20:08 +0300)
commitac6afe9c3386c126b819ff8447b04329ec4b4204
tree2d980440e1e72abc90f060f36d437c8ed044999a
parent2386b085268af9c06aebc5c4aced1aa6a0d3f702
Many improvements for Context Menus (bug#9054)

* lisp/menu-bar.el (menu-bar-showhide-menu): Add "Context Menus".

* lisp/mouse.el (context-menu-undo): Add "in Region" to the titles
when the region is active.
(context-menu-region): Use 'mouse-yank-from-menu' in menu items
created from 'yank-menu' for submenu "Paste from Kill Menu".
(context-menu-region): Add submenu "Select" with things to mark.
(mark-thing-at-mouse, mouse-yank-from-menu): New functions.

* lisp/thingatpt.el (bounds-of-thing-at-mouse): New function.

* lisp/progmodes/elisp-mode.el (elisp-context-menu):
* lisp/progmodes/prog-mode.el (prog-context-menu):
Use full symbol/identifier names in :help strings.

Suggested by Martin Rudalics <rudalics@gmx.at>
lisp/menu-bar.el
lisp/mouse.el
lisp/progmodes/elisp-mode.el
lisp/progmodes/prog-mode.el
lisp/thingatpt.el