]> code.delx.au - gnu-emacs/commitdiff
(isearch-process-search-multibyte-characters): Remove unneeded `concat'.
authorJuri Linkov <juri@jurta.org>
Mon, 18 Jul 2005 14:33:38 +0000 (14:33 +0000)
committerJuri Linkov <juri@jurta.org>
Mon, 18 Jul 2005 14:33:38 +0000 (14:33 +0000)
Add intermediate values to `junk-hist' instead of `minibuffer-history'.
Test the length of `str'.

lisp/ChangeLog
lisp/international/isearch-x.el

index 482ae0ea1ca08b393f03f979f025225b7c9bb39b..15c729f1a0998207c632761b2d0b08935c9bdd43 100644 (file)
@@ -1,3 +1,20 @@
+2005-07-18  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-mode-map): Remove key bindings for regexp
+       chars * ? } |.
+       (isearch-fallback): Don't call `isearch-process-search-char'.
+       (isearch-*-char, isearch-}-char, isearch-|-char): Remove functions.
+       (isearch-process-search-char): Call `isearch-fallback' for regexp
+       chars * ? } |.
+       (isearch-return-char): Make obsolete with `make-obsolete' instead
+       of simply documenting it as obsolete in the docstring.
+       (isearch-fallback): Refill docstring.
+
+       * international/isearch-x.el
+       (isearch-process-search-multibyte-characters): Remove unneeded `concat'.
+       Add intermediate values to `junk-hist' instead of `minibuffer-history'.
+       Test the length of `str'.
+
 2005-07-18  Juanma Barranquero  <lekktu@gmail.com>
 
        * allout.el (allout-resolve-xref): Fix typos in error strings.
index 46193d24d2c9c122452f57621502681131352cc6..1d0d50b01acc7e876d1ace4eb83c554bb43b60fb 100644 (file)
@@ -98,9 +98,9 @@
 (defun isearch-process-search-multibyte-characters (last-char)
   (if (eq this-command 'isearch-printing-char)
       (let ((overriding-terminal-local-map nil)
-           (prompt (concat (isearch-message-prefix)))
+           (prompt (isearch-message-prefix))
            (minibuffer-local-map isearch-minibuffer-local-map)
-           str)
+           str junk-hist)
        (if isearch-input-method-function
            (let (;; Let input method work rather tersely.
                  (input-method-verbose-flag nil))
                    (cons 'with-input-method
                          (cons last-char unread-command-events))
                    ;; Inherit current-input-method in a minibuffer.
-                   str (read-string prompt isearch-message nil nil t))
-             (if (not str)
+                   str (read-string prompt isearch-message 'junk-hist nil t))
+             (if (or (not str) (< (length str) (length isearch-message)))
                  ;; All inputs were deleted while the input method
                  ;; was working.
                  (setq str "")
            (setq unread-command-events
                  (cons 'with-keyboard-coding
                        (cons last-char unread-command-events))
-                 str (read-string prompt)))
+                 str (read-string prompt nil 'junk-hist)))
 
        (if (and str (> (length str) 0))
            (let ((unread-command-events nil))