aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2000-06-19 00:56:20 +0000
committerKenichi Handa2000-06-19 00:56:20 +0000
commit5cf1bf864082f5ce0cb7f1ccf2929fb61aa0286f (patch)
treeab1df10098b2eb3d7e58b6151c38e0435fe46f6b /lisp
parent8f3c9a3d348e316593064976272a37934d89ad72 (diff)
downloademacs-5cf1bf864082f5ce0cb7f1ccf2929fb61aa0286f.tar.gz
emacs-5cf1bf864082f5ce0cb7f1ccf2929fb61aa0286f.zip
(isearch-minibuffer-input-method)
(isearch-minibuffer-input-method-function): These variables deleted. (isearch-with-input-method): Don't use the above variables. (isearch-process-search-multibyte-characters): Likewise. Call read-string with the arg INHERIT-INPUT-METHOD t.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/international/isearch-x.el23
1 files changed, 6 insertions, 17 deletions
diff --git a/lisp/international/isearch-x.el b/lisp/international/isearch-x.el
index 442a3e3d172..67090bcac54 100644
--- a/lisp/international/isearch-x.el
+++ b/lisp/international/isearch-x.el
@@ -56,15 +56,6 @@
56 map) 56 map)
57 "Keymap to use in minibuffer for multibyte character inputting in isearch.") 57 "Keymap to use in minibuffer for multibyte character inputting in isearch.")
58 58
59
60;; These two variables are used to refer to the values of
61;; `current-input-method' and `input-method-function' of the original
62;; buffer in the function isearch-with-input-method which runs in a
63;; minibuffer.
64
65(defvar isearch-minibuffer-input-method nil)
66(defvar isearch-minibuffer-input-method-function nil)
67
68;; Exit from recursive edit safely. Set in `after-change-functions' 59;; Exit from recursive edit safely. Set in `after-change-functions'
69;; by isearch-with-keyboard-coding. 60;; by isearch-with-keyboard-coding.
70(defun isearch-exit-recursive-edit () 61(defun isearch-exit-recursive-edit ()
@@ -86,8 +77,7 @@
86 77
87(defun isearch-with-input-method () 78(defun isearch-with-input-method ()
88 (interactive) 79 (interactive)
89 (let* ((current-input-method isearch-minibuffer-input-method) 80 (let ((events (funcall input-method-function nil)))
90 (events (funcall isearch-minibuffer-input-method-function nil)))
91 ;; EVENTS is a list of events the input method has generated. It 81 ;; EVENTS is a list of events the input method has generated. It
92 ;; contains a character event and/or the special event 82 ;; contains a character event and/or the special event
93 ;; `compose-last-chars'. We extract only character events and 83 ;; `compose-last-chars'. We extract only character events and
@@ -106,20 +96,19 @@
106 str) 96 str)
107 (if isearch-input-method-function 97 (if isearch-input-method-function
108 (let (;; Let input method work rather tersely. 98 (let (;; Let input method work rather tersely.
109 (input-method-verbose-flag nil) 99 (input-method-verbose-flag nil))
110 (isearch-minibuffer-input-method current-input-method)
111 (isearch-minibuffer-input-method-function
112 isearch-input-method-function))
113 (setq unread-command-events 100 (setq unread-command-events
114 (cons 'with-input-method 101 (cons 'with-input-method
115 (cons last-char unread-command-events)) 102 (cons last-char unread-command-events))
116 str (read-string prompt)) 103 ;; Inherit current-input-method in a minibuffer.
104 str (read-string prompt nil nil nil t))
117 (if (not str) 105 (if (not str)
118 ;; All inputs were deleted while the input method 106 ;; All inputs were deleted while the input method
119 ;; was working. 107 ;; was working.
120 (setq str "") 108 (setq str "")
121 (if (and (= (length str) 1) 109 (if (and (= (length str) 1)
122 (= (aref str 0) last-char)) 110 (= (aref str 0) last-char)
111 (>= last-char 128))
123 ;; The input method couldn't handle LAST-CHAR. 112 ;; The input method couldn't handle LAST-CHAR.
124 (setq str nil))))) 113 (setq str nil)))))
125 114