[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 00d107e: * lisp/mouse.el (context-menu-entry): Bind to make-spars
From: |
Juri Linkov |
Subject: |
master 00d107e: * lisp/mouse.el (context-menu-entry): Bind to make-sparse-keymap, not ignore. |
Date: |
Wed, 8 Dec 2021 15:32:15 -0500 (EST) |
branch: master
commit 00d107ebead8d710cbe339d9af717e6eb2f9f2ff
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* lisp/mouse.el (context-menu-entry): Bind to make-sparse-keymap, not
ignore.
Then where-is-internal does not run context-menu-map from the :filter,
and no context menu functions are called by e.g. describe-mode in wrong
buffer
(bug#9923)
---
lisp/mouse.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 459cce4..13dda5c 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -524,7 +524,7 @@ Some context functions add menu items below the separator."
menu)
(defvar context-menu-entry
- `(menu-item ,(purecopy "Context Menu") ignore
+ `(menu-item ,(purecopy "Context Menu") ,(make-sparse-keymap)
:filter (lambda (_) (context-menu-map)))
"Menu item that creates the context menu and can be bound to a mouse key.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 00d107e: * lisp/mouse.el (context-menu-entry): Bind to make-sparse-keymap, not ignore.,
Juri Linkov <=