aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-08-18 10:51:45 +0000
committerKenichi Handa1997-08-18 10:51:45 +0000
commit000028d79c1d7898d16ca2fdbc7ff46413753109 (patch)
tree6cdd7051d7bf1aca8fa6f843eea6656efce1944d
parent3847cd47c1a2a8f21c6d944c9b35c3554c360141 (diff)
downloademacs-000028d79c1d7898d16ca2fdbc7ff46413753109.tar.gz
emacs-000028d79c1d7898d16ca2fdbc7ff46413753109.zip
(isearch-input-method): Deleted.
(isearch-input-method-title): Deleted. (isearch-toggle-specified-input-method): Call toggle-input-method. (isearch-toggle-input-method): Likewise. (isearch-process-search-multibyte-characters): Use current-input-method instead of isearch-input-method.
-rw-r--r--lisp/international/isearch-x.el37
1 files changed, 11 insertions, 26 deletions
diff --git a/lisp/international/isearch-x.el b/lisp/international/isearch-x.el
index a90d6d86e88..abf797788b4 100644
--- a/lisp/international/isearch-x.el
+++ b/lisp/international/isearch-x.el
@@ -28,53 +28,38 @@
28;;; Code: 28;;; Code:
29 29
30;;;###autoload 30;;;###autoload
31(defvar isearch-input-method nil
32 "Input method activated in interactive search.")
33
34(defvar isearch-input-method-title nil
35 "Title string of input method activated in interactive search.")
36
37;;;###autoload
38(defun isearch-toggle-specified-input-method () 31(defun isearch-toggle-specified-input-method ()
39 "Select an input method and turn it on in interactive search." 32 "Select an input method and turn it on in interactive search."
40 (interactive) 33 (interactive)
41 (setq isearch-input-method nil) 34 (let ((overriding-terminal-local-map nil))
42 (let ((default-input-method nil)) 35 (toggle-input-method t))
43 (isearch-toggle-input-method))) 36 (isearch-update))
44 37
45;;;###autoload 38;;;###autoload
46(defun isearch-toggle-input-method () 39(defun isearch-toggle-input-method ()
47 "Toggle input method in interactive search." 40 "Toggle input method in interactive search."
48 (interactive) 41 (interactive)
49 (if isearch-input-method 42 (let ((overriding-terminal-local-map nil))
50 (setq isearch-input-method nil) 43 (toggle-input-method))
51 (setq isearch-input-method
52 (or default-input-method
53 (let ((overriding-terminal-local-map nil))
54 (read-input-method-name "Input method: "))))
55 (if isearch-input-method
56 (setq isearch-input-method-title
57 (nth 3 (assoc isearch-input-method input-method-alist)))
58 (ding)))
59 (isearch-update)) 44 (isearch-update))
60 45
61(defun isearch-input-method-after-insert-chunk-function () 46;;;###autoload
62 (funcall inactivate-current-input-method-function))
63
64(defun isearch-process-search-multibyte-characters (last-char) 47(defun isearch-process-search-multibyte-characters (last-char)
65 (let ((overriding-terminal-local-map nil) 48 (let ((overriding-terminal-local-map nil)
66 ;; Let input method exit when a chunk is inserted. 49 ;; Let input method exit when a chunk is inserted.
67 (input-method-after-insert-chunk-hook 50 (input-method-after-insert-chunk-hook '(inactivate-input-method))
68 '(isearch-input-method-after-insert-chunk-function))
69 (input-method-inactivate-hook '(exit-minibuffer)) 51 (input-method-inactivate-hook '(exit-minibuffer))
70 ;; Let input method work rather tersely. 52 ;; Let input method work rather tersely.
71 (input-method-verbose-flag nil) 53 (input-method-verbose-flag nil)
54 ;; A key not handled by the current input method should
55 ;; terminate the input method.
56 (input-method-exit-on-invalid-key t)
72 str) 57 str)
73 (setq unread-command-events (cons last-char unread-command-events)) 58 (setq unread-command-events (cons last-char unread-command-events))
74 (setq str (read-multilingual-string 59 (setq str (read-multilingual-string
75 (concat (isearch-message-prefix) isearch-message) 60 (concat (isearch-message-prefix) isearch-message)
76 nil 61 nil
77 isearch-input-method)) 62 current-input-method))
78 (isearch-process-search-string str str))) 63 (isearch-process-search-string str str)))
79 64
80;;; isearch-x.el ends here 65;;; isearch-x.el ends here