]> git.eshelyaron.com Git - emacs.git/commit
Change the order of context-menu-functions and add more context menus.
authorJuri Linkov <juri@linkov.net>
Wed, 21 Jul 2021 18:40:11 +0000 (21:40 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 21 Jul 2021 18:40:11 +0000 (21:40 +0300)
commit1493145e3048e057d8ac9e8c9c56d1f99a97eb53
tree2d811807df8e06adba5cbb1b5b376b9c5dc68c27
parent292e6261be8d4b7b08f87e70eb8490e31b3e9a4f
Change the order of context-menu-functions and add more context menus.

* lisp/mouse.el (context-menu-functions): Update default list.
(context-menu-overriding-function): Remove variable.
(context-menu-map): Reverse the order.
(context-menu-global, context-menu-local, context-menu-minor): New functions.
(context-menu-undo, context-menu-region): Add separators.
Use define-key-after instead of bindings--define-key.
(context-menu-entry): New variable.
(context-menu-mode): Use it.

* lisp/dired.el (dired-context-menu): New function.
(dired-mode): Add it to context-menu-functions.

* lisp/info.el (Info-context-menu): Reorder.

* lisp/net/goto-addr.el (goto-address-at-mouse):
Rename from goto-address-at-click.
(goto-address-context-menu): Use goto-address-at-mouse.

* lisp/progmodes/prog-mode.el (prog-context-menu): New function.
(prog-mode): Add it to context-menu-functions.
lisp/dired.el
lisp/info.el
lisp/mouse.el
lisp/net/goto-addr.el
lisp/progmodes/prog-mode.el