aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-07-18 14:33:38 +0000
committerJuri Linkov2005-07-18 14:33:38 +0000
commit57cfde4d16388088ba0e01926a593a595307e2f8 (patch)
tree6f6dffa7dab2d949e79212629a5048735f773997
parent6f2df0f488f491290859df6c74dc3a87c6e33daa (diff)
downloademacs-57cfde4d16388088ba0e01926a593a595307e2f8.tar.gz
emacs-57cfde4d16388088ba0e01926a593a595307e2f8.zip
(isearch-process-search-multibyte-characters): Remove unneeded `concat'.
Add intermediate values to `junk-hist' instead of `minibuffer-history'. Test the length of `str'.
-rw-r--r--lisp/ChangeLog17
-rw-r--r--lisp/international/isearch-x.el10
2 files changed, 22 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 482ae0ea1ca..15c729f1a09 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,20 @@
12005-07-18 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-mode-map): Remove key bindings for regexp
4 chars * ? } |.
5 (isearch-fallback): Don't call `isearch-process-search-char'.
6 (isearch-*-char, isearch-}-char, isearch-|-char): Remove functions.
7 (isearch-process-search-char): Call `isearch-fallback' for regexp
8 chars * ? } |.
9 (isearch-return-char): Make obsolete with `make-obsolete' instead
10 of simply documenting it as obsolete in the docstring.
11 (isearch-fallback): Refill docstring.
12
13 * international/isearch-x.el
14 (isearch-process-search-multibyte-characters): Remove unneeded `concat'.
15 Add intermediate values to `junk-hist' instead of `minibuffer-history'.
16 Test the length of `str'.
17
12005-07-18 Juanma Barranquero <lekktu@gmail.com> 182005-07-18 Juanma Barranquero <lekktu@gmail.com>
2 19
3 * allout.el (allout-resolve-xref): Fix typos in error strings. 20 * allout.el (allout-resolve-xref): Fix typos in error strings.
diff --git a/lisp/international/isearch-x.el b/lisp/international/isearch-x.el
index 46193d24d2c..1d0d50b01ac 100644
--- a/lisp/international/isearch-x.el
+++ b/lisp/international/isearch-x.el
@@ -98,9 +98,9 @@
98(defun isearch-process-search-multibyte-characters (last-char) 98(defun isearch-process-search-multibyte-characters (last-char)
99 (if (eq this-command 'isearch-printing-char) 99 (if (eq this-command 'isearch-printing-char)
100 (let ((overriding-terminal-local-map nil) 100 (let ((overriding-terminal-local-map nil)
101 (prompt (concat (isearch-message-prefix))) 101 (prompt (isearch-message-prefix))
102 (minibuffer-local-map isearch-minibuffer-local-map) 102 (minibuffer-local-map isearch-minibuffer-local-map)
103 str) 103 str junk-hist)
104 (if isearch-input-method-function 104 (if isearch-input-method-function
105 (let (;; Let input method work rather tersely. 105 (let (;; Let input method work rather tersely.
106 (input-method-verbose-flag nil)) 106 (input-method-verbose-flag nil))
@@ -108,8 +108,8 @@
108 (cons 'with-input-method 108 (cons 'with-input-method
109 (cons last-char unread-command-events)) 109 (cons last-char unread-command-events))
110 ;; Inherit current-input-method in a minibuffer. 110 ;; Inherit current-input-method in a minibuffer.
111 str (read-string prompt isearch-message nil nil t)) 111 str (read-string prompt isearch-message 'junk-hist nil t))
112 (if (not str) 112 (if (or (not str) (< (length str) (length isearch-message)))
113 ;; All inputs were deleted while the input method 113 ;; All inputs were deleted while the input method
114 ;; was working. 114 ;; was working.
115 (setq str "") 115 (setq str "")
@@ -124,7 +124,7 @@
124 (setq unread-command-events 124 (setq unread-command-events
125 (cons 'with-keyboard-coding 125 (cons 'with-keyboard-coding
126 (cons last-char unread-command-events)) 126 (cons last-char unread-command-events))
127 str (read-string prompt))) 127 str (read-string prompt nil 'junk-hist)))
128 128
129 (if (and str (> (length str) 0)) 129 (if (and str (> (length str) 0))
130 (let ((unread-command-events nil)) 130 (let ((unread-command-events nil))