[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 404273a: Limit scope of local overriding-terminal-l
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master 404273a: Limit scope of local overriding-terminal-local-map |
Date: |
Thu, 1 Jun 2017 18:07:14 -0400 (EDT) |
branch: master
commit 404273aeacba39833ae3a38ce6764cc7a636e9d9
Author: Alexander Gramiak <address@hidden>
Commit: Noam Postavsky <address@hidden>
Limit scope of local overriding-terminal-local-map
The function `binding' may call isearch-done, which globally sets
overriding-terminal-local-map to nil (Bug#23007).
* lisp/isearch.el (isearch-mouse-2): Don't bind
overriding-terminal-local-map around the call to `binding'.
---
lisp/isearch.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/isearch.el b/lisp/isearch.el
index c34739d..5f34dca 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -2036,9 +2036,9 @@ For a click in the echo area, invoke
`isearch-yank-x-selection'.
Otherwise invoke whatever the calling mouse-2 command sequence
is bound to outside of Isearch."
(interactive "e")
- (let* ((w (posn-window (event-start click)))
- (overriding-terminal-local-map nil)
- (binding (key-binding (this-command-keys-vector) t)))
+ (let ((w (posn-window (event-start click)))
+ (binding (let ((overriding-terminal-local-map nil))
+ (key-binding (this-command-keys-vector) t))))
(if (and (window-minibuffer-p w)
(not (minibuffer-window-active-p w))) ; in echo area
(isearch-yank-x-selection)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 404273a: Limit scope of local overriding-terminal-local-map,
Noam Postavsky <=