Mercurial > emacs
diff lisp/replace.el @ 76749:6a1a4e97079e
(occur-next-error): *Occur* might not be displayed in the
selected frame. Reported by David Hansen <david.hansen@gmx.net>.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Mon, 26 Mar 2007 15:09:52 +0000 |
| parents | 08ea848cd1f3 |
| children | 0f67bcedb447 4ef881a120fe |
line wrap: on
line diff
--- a/lisp/replace.el Mon Mar 26 10:20:27 2007 +0000 +++ b/lisp/replace.el Mon Mar 26 15:09:52 2007 +0000 @@ -844,7 +844,8 @@ #'next-single-property-change) "No more matches") ;; In case the *Occur* buffer is visible in a nonselected window. - (set-window-point (get-buffer-window (current-buffer)) (point)) + (let ((win (get-buffer-window (current-buffer) t))) + (if win (set-window-point win (point)))) (occur-mode-goto-occurrence))) (defface match
