[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 7dcefa7: View-search-... now hit all the matches, r
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 7dcefa7: View-search-... now hit all the matches, regardless of window position |
Date: |
Tue, 25 Jun 2019 18:50:41 -0400 (EDT) |
branch: master
commit 7dcefa7a2bb4d2531d23cbf51eb98ce7727b366c
Author: Dima Kogan <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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.
---
lisp/view.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/view.el b/lisp/view.el
index e74ce1e..a765be0 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 7dcefa7: View-search-... now hit all the matches, regardless of window position,
Lars Ingebrigtsen <=