summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-07-18 17:27:23 +0800
committerChong Yidong <cyd@gnu.org>2012-07-18 17:27:23 +0800
commit439f7677e90c6f4dd789b07efd46049c1100d9ed (patch)
tree9cfae0ee065e478f4f945c6c9ff4ab6c36ae4cde /lisp/isearch.el
parent5fbfb018e06e1578199f2ac0d827535d29853085 (diff)
downloademacs-439f7677e90c6f4dd789b07efd46049c1100d9ed.tar.gz
emacs-439f7677e90c6f4dd789b07efd46049c1100d9ed.tar.bz2
emacs-439f7677e90c6f4dd789b07efd46049c1100d9ed.zip
Fix usage of C-x 8 key translations in Isearch.
* lisp/isearch.el (isearch-mode-map): Handle C-x 8 key translations, and make C-x 8 RET exit isearch. * lisp/international/iso-transl.el: Move isearch-mode-map key definitions to isearch.el. Fixes: debbugs:11439
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 8fe2aba9499..27185bf3fa6 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -511,6 +511,13 @@ This is like `describe-bindings', but displays only Isearch keys."
(define-key map "\M-so" 'isearch-occur)
(define-key map "\M-shr" 'isearch-highlight-regexp)
+ ;; The key translations defined in the C-x 8 prefix should insert
+ ;; characters into the search string. See iso-transl.el.
+ (define-key map "\C-x" nil)
+ (define-key map [?\C-x t] 'isearch-other-control-char)
+ (define-key map "\C-x8" nil)
+ (define-key map "\C-x8\r" 'isearch-other-control-char)
+
map)
"Keymap for `isearch-mode'.")