]> git.eshelyaron.com Git - emacs.git/commitdiff
(occur-mode-mouse-goto): Always go to other window.
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 Oct 2005 19:49:20 +0000 (19:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 Oct 2005 19:49:20 +0000 (19:49 +0000)
(occur-mode-goto-occurrence): Always switch in same window.

lisp/replace.el

index 31963f7538cd6da7f42f2fa1e4d37584b7b042ad..1d5c2a7c7c4d7c291efabeb64b1087af7a7105dc 100644 (file)
@@ -755,7 +755,7 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it.
       (save-excursion
        (goto-char (posn-point (event-end event)))
        (setq pos (occur-mode-find-occurrence))))
-    (pop-to-buffer (marker-buffer pos))
+    (switch-to-buffer-other-window (marker-buffer pos))
     (goto-char pos)))
 
 (defun occur-mode-find-occurrence ()
@@ -770,7 +770,7 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it.
   "Go to the occurrence the current line describes."
   (interactive)
   (let ((pos (occur-mode-find-occurrence)))
-    (pop-to-buffer (marker-buffer pos))
+    (switch-to-buffer (marker-buffer pos))
     (goto-char pos)))
 
 (defun occur-mode-goto-occurrence-other-window ()