diff options
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index a42f4ff4b57..a8dfd043c72 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -844,7 +844,8 @@ Compatibility function for \\[next-error] invocations." | |||
| 844 | #'next-single-property-change) | 844 | #'next-single-property-change) |
| 845 | "No more matches") | 845 | "No more matches") |
| 846 | ;; In case the *Occur* buffer is visible in a nonselected window. | 846 | ;; In case the *Occur* buffer is visible in a nonselected window. |
| 847 | (set-window-point (get-buffer-window (current-buffer)) (point)) | 847 | (let ((win (get-buffer-window (current-buffer) t))) |
| 848 | (if win (set-window-point win (point)))) | ||
| 848 | (occur-mode-goto-occurrence))) | 849 | (occur-mode-goto-occurrence))) |
| 849 | 850 | ||
| 850 | (defface match | 851 | (defface match |