aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/isearch.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 9f36498af24..05c659f574f 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -234,6 +234,7 @@ Default value, nil, means edit the string instead."
234 (aset (nth 1 map) (make-char 'latin-iso8859-2) 'isearch-printing-char) 234 (aset (nth 1 map) (make-char 'latin-iso8859-2) 'isearch-printing-char)
235 (aset (nth 1 map) (make-char 'latin-iso8859-3) 'isearch-printing-char) 235 (aset (nth 1 map) (make-char 'latin-iso8859-3) 'isearch-printing-char)
236 (aset (nth 1 map) (make-char 'latin-iso8859-4) 'isearch-printing-char) 236 (aset (nth 1 map) (make-char 'latin-iso8859-4) 'isearch-printing-char)
237 (aset (nth 1 map) (make-char 'latin-iso8859-9) 'isearch-printing-char)
237 ;; Make function keys, etc, exit the search. 238 ;; Make function keys, etc, exit the search.
238 (define-key map [t] 'isearch-other-control-char) 239 (define-key map [t] 'isearch-other-control-char)
239 ;; Control chars, by default, end isearch mode transparently. 240 ;; Control chars, by default, end isearch mode transparently.
@@ -1018,10 +1019,14 @@ If no previous match was done, just beep."
1018 (or isearch-yank-flag 1019 (or isearch-yank-flag
1019 (<= (match-end 0) 1020 (<= (match-end 0)
1020 (min isearch-opoint isearch-barrier)))) 1021 (min isearch-opoint isearch-barrier))))
1021 (setq isearch-success t 1022 (progn
1022 isearch-invalid-regexp nil 1023 (setq isearch-success t
1023 isearch-within-brackets nil 1024 isearch-invalid-regexp nil
1024 isearch-other-end (match-end 0)) 1025 isearch-within-brackets nil
1026 isearch-other-end (match-end 0))
1027 (if (and (eq isearch-case-fold-search t) search-upper-case)
1028 (setq isearch-case-fold-search
1029 (isearch-no-upper-case-p isearch-string isearch-regexp))))
1025 ;; Not regexp, not reverse, or no match at point. 1030 ;; Not regexp, not reverse, or no match at point.
1026 (if (and isearch-other-end (not isearch-adjusted)) 1031 (if (and isearch-other-end (not isearch-adjusted))
1027 (goto-char (if isearch-forward isearch-other-end 1032 (goto-char (if isearch-forward isearch-other-end