diff options
| author | Juri Linkov | 2011-11-19 23:03:12 +0200 |
|---|---|---|
| committer | Juri Linkov | 2011-11-19 23:03:12 +0200 |
| commit | 30c621331d969093bf618ba4fb9a8cc0a14edfe7 (patch) | |
| tree | d2ae2437b526297d58246e501518b4636730241e | |
| parent | 645ca9cf3730a94481ff52b47d63f20852b15245 (diff) | |
| download | emacs-30c621331d969093bf618ba4fb9a8cc0a14edfe7.tar.gz emacs-30c621331d969093bf618ba4fb9a8cc0a14edfe7.zip | |
* 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
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/info.el | 4 | ||||
| -rw-r--r-- | lisp/isearch.el | 34 | ||||
| -rw-r--r-- | lisp/misearch.el | 6 |
4 files changed, 39 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fcfdb066d5c..c66d9c6112c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,20 @@ | |||
| 1 | 2011-11-19 Juri Linkov <juri@jurta.org> | 1 | 2011-11-19 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * isearch.el (isearch-lazy-highlight-new-loop): | ||
| 4 | Remove condition `(not isearch-error)'. (Bug#9918) | ||
| 5 | |||
| 6 | * misearch.el (multi-isearch-search-fun): Add condition | ||
| 7 | `(not bound)' to ignore lazy-highlighting search. | ||
| 8 | Add the search-failed message "end of multi" when the end of | ||
| 9 | multi-sequence is reached. Uncapitalize the search-failed | ||
| 10 | message "Repeat for next buffer". | ||
| 11 | |||
| 12 | * info.el (Info-search): Add the search-failed message | ||
| 13 | "end of the manual" when the end of the manual is reached | ||
| 14 | in Isearch mode. | ||
| 15 | |||
| 16 | 2011-11-19 Juri Linkov <juri@jurta.org> | ||
| 17 | |||
| 3 | * info.el (Info-find-node-2, Info-select-node, Info-history-find-node): | 18 | * info.el (Info-find-node-2, Info-select-node, Info-history-find-node): |
| 4 | Use non-destructive `remove' instead of `delete' because | 19 | Use non-destructive `remove' instead of `delete' because |
| 5 | `Info-history-list' stored to `Info-isearch-initial-history-list' in | 20 | `Info-history-list' stored to `Info-isearch-initial-history-list' in |
diff --git a/lisp/info.el b/lisp/info.el index 12639478d8e..338f6cb5e65 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1846,7 +1846,9 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1846 | (setq list nil))) | 1846 | (setq list nil))) |
| 1847 | (if found | 1847 | (if found |
| 1848 | (message "") | 1848 | (message "") |
| 1849 | (signal 'search-failed (list regexp)))) | 1849 | (signal 'search-failed (if isearch-mode |
| 1850 | (list regexp "end of the manual") | ||
| 1851 | (list regexp))))) | ||
| 1850 | (if (not found) | 1852 | (if (not found) |
| 1851 | (progn (Info-read-subfile osubfile) | 1853 | (progn (Info-read-subfile osubfile) |
| 1852 | (goto-char opoint) | 1854 | (goto-char opoint) |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 07ae56934b5..39ed7adc9c4 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2673,25 +2673,27 @@ by other Emacs features." | |||
| 2673 | ;; something important did indeed change | 2673 | ;; something important did indeed change |
| 2674 | (lazy-highlight-cleanup t) ;kill old loop & remove overlays | 2674 | (lazy-highlight-cleanup t) ;kill old loop & remove overlays |
| 2675 | (setq isearch-lazy-highlight-error isearch-error) | 2675 | (setq isearch-lazy-highlight-error isearch-error) |
| 2676 | (when (not isearch-error) | 2676 | ;; It used to check for `(not isearch-error)' here, but actually |
| 2677 | (setq isearch-lazy-highlight-start-limit beg | 2677 | ;; lazy-highlighting might find matches to highlight even when |
| 2678 | isearch-lazy-highlight-end-limit end) | 2678 | ;; `isearch-error' is non-nil. (Bug#9918) |
| 2679 | (setq isearch-lazy-highlight-window (selected-window) | 2679 | (setq isearch-lazy-highlight-start-limit beg |
| 2680 | isearch-lazy-highlight-window-start (window-start) | 2680 | isearch-lazy-highlight-end-limit end) |
| 2681 | isearch-lazy-highlight-window-end (window-end) | 2681 | (setq isearch-lazy-highlight-window (selected-window) |
| 2682 | isearch-lazy-highlight-start (point) | 2682 | isearch-lazy-highlight-window-start (window-start) |
| 2683 | isearch-lazy-highlight-end (point) | 2683 | isearch-lazy-highlight-window-end (window-end) |
| 2684 | isearch-lazy-highlight-wrapped nil | 2684 | isearch-lazy-highlight-start (point) |
| 2685 | isearch-lazy-highlight-last-string isearch-string | 2685 | isearch-lazy-highlight-end (point) |
| 2686 | isearch-lazy-highlight-case-fold-search isearch-case-fold-search | 2686 | isearch-lazy-highlight-wrapped nil |
| 2687 | isearch-lazy-highlight-regexp isearch-regexp | 2687 | isearch-lazy-highlight-last-string isearch-string |
| 2688 | isearch-lazy-highlight-space-regexp search-whitespace-regexp | 2688 | isearch-lazy-highlight-case-fold-search isearch-case-fold-search |
| 2689 | isearch-lazy-highlight-word isearch-word | 2689 | isearch-lazy-highlight-regexp isearch-regexp |
| 2690 | isearch-lazy-highlight-forward isearch-forward) | 2690 | isearch-lazy-highlight-space-regexp search-whitespace-regexp |
| 2691 | isearch-lazy-highlight-word isearch-word | ||
| 2692 | isearch-lazy-highlight-forward isearch-forward) | ||
| 2691 | (unless (equal isearch-string "") | 2693 | (unless (equal isearch-string "") |
| 2692 | (setq isearch-lazy-highlight-timer | 2694 | (setq isearch-lazy-highlight-timer |
| 2693 | (run-with-idle-timer lazy-highlight-initial-delay nil | 2695 | (run-with-idle-timer lazy-highlight-initial-delay nil |
| 2694 | 'isearch-lazy-highlight-update)))))) | 2696 | 'isearch-lazy-highlight-update))))) |
| 2695 | 2697 | ||
| 2696 | (defun isearch-lazy-highlight-search () | 2698 | (defun isearch-lazy-highlight-search () |
| 2697 | "Search ahead for the next or previous match, for lazy highlighting. | 2699 | "Search ahead for the next or previous match, for lazy highlighting. |
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'." | |||
| 142 | ;; 1. First try searching in the initial buffer | 142 | ;; 1. First try searching in the initial buffer |
| 143 | (let ((res (funcall search-fun string bound noerror))) | 143 | (let ((res (funcall search-fun string bound noerror))) |
| 144 | ;; Reset wrapping for all-buffers pause after successful search | 144 | ;; Reset wrapping for all-buffers pause after successful search |
| 145 | (if (and res (eq multi-isearch-pause t)) | 145 | (if (and res (not bound) (eq multi-isearch-pause t)) |
| 146 | (setq multi-isearch-current-buffer nil)) | 146 | (setq multi-isearch-current-buffer nil)) |
| 147 | res) | 147 | res) |
| 148 | ;; 2. If the above search fails, start visiting next/prev buffers | 148 | ;; 2. If the above search fails, start visiting next/prev buffers |
| @@ -173,8 +173,8 @@ Intended to be added to `isearch-mode-hook'." | |||
| 173 | found) | 173 | found) |
| 174 | ;; Return nil when multi-isearch-next-buffer-current-function fails | 174 | ;; Return nil when multi-isearch-next-buffer-current-function fails |
| 175 | ;; (`with-current-buffer' raises an error for nil returned from it). | 175 | ;; (`with-current-buffer' raises an error for nil returned from it). |
| 176 | (error nil)) | 176 | (error (signal 'search-failed (list string "end of multi")))) |
| 177 | (signal 'search-failed (list string "Repeat for next buffer")))))))) | 177 | (signal 'search-failed (list string "repeat for next buffer")))))))) |
| 178 | 178 | ||
| 179 | (defun multi-isearch-wrap () | 179 | (defun multi-isearch-wrap () |
| 180 | "Wrap the multiple buffers search when search is failed. | 180 | "Wrap the multiple buffers search when search is failed. |