summaryrefslogtreecommitdiff
path: root/lisp/international/isearch-x.el
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-08-06 05:38:11 +0000
committerKenichi Handa <handa@m17n.org>1998-08-06 05:38:11 +0000
commitbbb398a13f9a3c91029f5756c8d86fa9691f4c08 (patch)
tree980f60085bcde873569b965f23529643167015ea /lisp/international/isearch-x.el
parentf12d44e5ae4146d21ebb36c990032efded1c3178 (diff)
downloademacs-bbb398a13f9a3c91029f5756c8d86fa9691f4c08.tar.gz
(isearch-minibuffer-local-map): Bind
the key C-g to exit. (isearch-minibuffer-self-insert): Use key-binding. Always call exit-minibuffer. (isearch-process-search-multibyte-characters): Use unread-command-events instead of unread-input-method-events. Always call isearch-update.
Diffstat (limited to 'lisp/international/isearch-x.el')
-rw-r--r--lisp/international/isearch-x.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/international/isearch-x.el b/lisp/international/isearch-x.el
index 31546b50c37..33081821514 100644
--- a/lisp/international/isearch-x.el
+++ b/lisp/international/isearch-x.el
@@ -63,6 +63,7 @@
(setq l (cdr l))))
(define-key map "\C-m" 'exit-minibuffer)
(define-key map [return] 'exit-minibuffer)
+ (define-key map "\C-g" 'exit-minibuffer)
map)
"Keymap of minibuffer to input multibyte characters while isearching.")
@@ -77,8 +78,9 @@
(catch 'isearch-tag
(while events
(let* ((event (car events))
- (cmd (lookup-key isearch-mode-map (vector event))))
- (cond ((eq cmd 'isearch-printing-char)
+ (cmd (key-binding (vector event))))
+ (cond ((or (eq cmd 'isearch-printing-char)
+ (eq cmd 'isearch-minibuffer-self-insert))
(insert event)
(setq events (cdr events)))
((eq cmd 'exit-minibuffer)
@@ -87,8 +89,7 @@
(t
(throw 'isearch-tag nil))))))
(setq unread-post-input-method-events events)
- (or unread-post-input-method-events
- (exit-minibuffer))))
+ (exit-minibuffer)))
;;;###autoload
(defun isearch-process-search-multibyte-characters (last-char)
@@ -98,15 +99,15 @@
(input-method-verbose-flag nil)
(minibuffer-local-map isearch-minibuffer-local-map)
str)
- (setq unread-input-method-events
- (cons last-char unread-input-method-events))
+ (setq unread-command-events
+ (cons last-char unread-command-events))
(setq str (read-multilingual-string
(concat (isearch-message-prefix) isearch-message)
nil
current-input-method))
(if (and str (> (length str) 0))
- (isearch-process-search-string str str)
- (isearch-update)))
+ (isearch-process-search-string str str))
+ (isearch-update))
(isearch-process-search-char last-char)))
;;; isearch-x.el ends here