diff options
author | Juri Linkov <juri@jurta.org> | 2011-11-19 23:03:12 +0200 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2011-11-19 23:03:12 +0200 |
commit | 30c621331d969093bf618ba4fb9a8cc0a14edfe7 (patch) | |
tree | d2ae2437b526297d58246e501518b4636730241e /lisp/misearch.el | |
parent | 645ca9cf3730a94481ff52b47d63f20852b15245 (diff) | |
download | emacs-30c621331d969093bf618ba4fb9a8cc0a14edfe7.tar.gz |
* lisp/isearch.el (isearch-lazy-highlight-new-loop):
Remove condition `(not isearch-error)'.
* lisp/misearch.el (multi-isearch-search-fun): Add condition
`(not bound)' to ignore lazy-highlighting search.
Add the search-failed message "end of multi" when the end of
multi-sequence is reached. Uncapitalize the search-failed
message "Repeat for next buffer".
* lisp/info.el (Info-search): Add the search-failed message
"end of the manual" when the end of the manual is reached
in Isearch mode.
Fixes: debbugs:9918
Diffstat (limited to 'lisp/misearch.el')
-rw-r--r-- | lisp/misearch.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/misearch.el b/lisp/misearch.el index c533562f073..de1a32ff7d5 100644 --- a/lisp/misearch.el +++ b/lisp/misearch.el @@ -142,7 +142,7 @@ Intended to be added to `isearch-mode-hook'." ;; 1. First try searching in the initial buffer (let ((res (funcall search-fun string bound noerror))) ;; Reset wrapping for all-buffers pause after successful search - (if (and res (eq multi-isearch-pause t)) + (if (and res (not bound) (eq multi-isearch-pause t)) (setq multi-isearch-current-buffer nil)) res) ;; 2. If the above search fails, start visiting next/prev buffers @@ -173,8 +173,8 @@ Intended to be added to `isearch-mode-hook'." found) ;; Return nil when multi-isearch-next-buffer-current-function fails ;; (`with-current-buffer' raises an error for nil returned from it). - (error nil)) - (signal 'search-failed (list string "Repeat for next buffer")))))))) + (error (signal 'search-failed (list string "end of multi")))) + (signal 'search-failed (list string "repeat for next buffer")))))))) (defun multi-isearch-wrap () "Wrap the multiple buffers search when search is failed. |