diff options
| author | Dima Kogan | 2019-06-26 00:49:24 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-26 00:49:24 +0200 |
| commit | 7dcefa7a2bb4d2531d23cbf51eb98ce7727b366c (patch) | |
| tree | f87ddabc9bec5ec317b4b17782d1033236f4423b | |
| parent | d7c6836288c91bb639956cb8c748dd6597c55cd4 (diff) | |
| download | emacs-7dcefa7a2bb4d2531d23cbf51eb98ce7727b366c.tar.gz emacs-7dcefa7a2bb4d2531d23cbf51eb98ce7727b366c.zip | |
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.
| -rw-r--r-- | lisp/view.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el index e74ce1e8888..a765be02c1e 100644 --- a/lisp/view.el +++ b/lisp/view.el | |||
| @@ -957,7 +957,7 @@ for highlighting the match that is found." | |||
| 957 | (t (error "No previous View-mode search"))) | 957 | (t (error "No previous View-mode search"))) |
| 958 | (save-excursion | 958 | (save-excursion |
| 959 | (if end (goto-char (if (< times 0) (point-max) (point-min))) | 959 | (if end (goto-char (if (< times 0) (point-max) (point-min))) |
| 960 | (move-to-window-line (if (< times 0) 0 -1))) | 960 | (forward-line (if (< times 0) -1 1))) |
| 961 | (if (if no (view-search-no-match-lines times regexp) | 961 | (if (if no (view-search-no-match-lines times regexp) |
| 962 | (re-search-forward regexp nil t times)) | 962 | (re-search-forward regexp nil t times)) |
| 963 | (setq where (point)))) | 963 | (setq where (point)))) |