mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-09 05:01:02 -08:00
View-search-... now hit all the matches, regardless of window position
* lisp/view.el (view-search): Jump to the next/prev occurrence of the search, even if it's displayed in the buffer (bug#18131). This seems more logical than the previous (undocumented) behaviour.
This commit is contained in:
parent
d7c6836288
commit
7dcefa7a2b
1 changed files with 1 additions and 1 deletions
|
|
@ -957,7 +957,7 @@ for highlighting the match that is found."
|
|||
(t (error "No previous View-mode search")))
|
||||
(save-excursion
|
||||
(if end (goto-char (if (< times 0) (point-max) (point-min)))
|
||||
(move-to-window-line (if (< times 0) 0 -1)))
|
||||
(forward-line (if (< times 0) -1 1)))
|
||||
(if (if no (view-search-no-match-lines times regexp)
|
||||
(re-search-forward regexp nil t times))
|
||||
(setq where (point))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue