diff options
author | Chong Yidong <cyd@gnu.org> | 2012-07-18 17:27:23 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-07-18 17:27:23 +0800 |
commit | 439f7677e90c6f4dd789b07efd46049c1100d9ed (patch) | |
tree | 9cfae0ee065e478f4f945c6c9ff4ab6c36ae4cde /lisp/isearch.el | |
parent | 5fbfb018e06e1578199f2ac0d827535d29853085 (diff) | |
download | emacs-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.el | 7 |
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'.") |