aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2013-12-16 22:32:15 +0200
committerJuri Linkov2013-12-16 22:32:15 +0200
commit2178e8589a6f650eba114153be01d14f9ed08b60 (patch)
treecb474113ce9ab1e785e58b050ea94bff5e913b3f
parent5e6d03b2abd37151ae1329c4b98edfa8242d2f0f (diff)
downloademacs-2178e8589a6f650eba114153be01d14f9ed08b60.tar.gz
emacs-2178e8589a6f650eba114153be01d14f9ed08b60.zip
* lisp/isearch.el (isearch-mode-map): Remove [escape] key bindinds.
(isearch-pre-command-hook): Check `this-command' for symbolp. Fixes: debbugs:16035
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/isearch.el5
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6b0b8fc67d8..0cf8ed3da1e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-12-16 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-mode-map): Remove [escape] key bindinds.
4 (Bug#16035)
5 (isearch-pre-command-hook): Check `this-command' for symbolp.
6
12013-12-16 Stefan Monnier <monnier@iro.umontreal.ca> 72013-12-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * emacs-lisp/gv.el (gv-ref): Mention lexbind restriction (bug#16153). 9 * emacs-lisp/gv.el (gv-ref): Mention lexbind restriction (bug#16153).
diff --git a/lisp/isearch.el b/lisp/isearch.el
index b411396cc70..02b121621a6 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -435,8 +435,7 @@ This is like `describe-bindings', but displays only Isearch keys."
435 ;; would be simpler to disable the global keymap, and/or have a 435 ;; would be simpler to disable the global keymap, and/or have a
436 ;; default local key binding for any key not otherwise bound. 436 ;; default local key binding for any key not otherwise bound.
437 (let ((meta-map (make-sparse-keymap))) 437 (let ((meta-map (make-sparse-keymap)))
438 (define-key map (char-to-string meta-prefix-char) meta-map) 438 (define-key map (char-to-string meta-prefix-char) meta-map))
439 (define-key map [escape] meta-map))
440 439
441 ;; Several non-printing chars change the searching behavior. 440 ;; Several non-printing chars change the searching behavior.
442 (define-key map "\C-s" 'isearch-repeat-forward) 441 (define-key map "\C-s" 'isearch-repeat-forward)
@@ -453,7 +452,6 @@ This is like `describe-bindings', but displays only Isearch keys."
453 (or (= ?\e meta-prefix-char) 452 (or (= ?\e meta-prefix-char)
454 (error "Inconsistency in isearch.el")) 453 (error "Inconsistency in isearch.el"))
455 (define-key map "\e\e\e" 'isearch-cancel) 454 (define-key map "\e\e\e" 'isearch-cancel)
456 (define-key map [escape escape escape] 'isearch-cancel)
457 455
458 (define-key map "\C-q" 'isearch-quote-char) 456 (define-key map "\C-q" 'isearch-quote-char)
459 457
@@ -2251,6 +2249,7 @@ before the command is executed globally with terminated Isearch."
2251 (memq this-command '(universal-argument 2249 (memq this-command '(universal-argument
2252 digit-argument negative-argument))) 2250 digit-argument negative-argument)))
2253 (and isearch-allow-scroll 2251 (and isearch-allow-scroll
2252 (symbolp this-command)
2254 (or (eq (get this-command 'isearch-scroll) t) 2253 (or (eq (get this-command 'isearch-scroll) t)
2255 (eq (get this-command 'scroll-command) t)))) 2254 (eq (get this-command 'scroll-command) t))))
2256 (when isearch-allow-scroll 2255 (when isearch-allow-scroll