summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2005-11-28 19:18:51 +0000
committerChong Yidong <cyd@stupidchicken.com>2005-11-28 19:18:51 +0000
commit7e1d31d4604a0525afd6b25cb1bf31bd23fe9db9 (patch)
tree37f165730e83d1624533984a6399be94d99b9d85 /lisp/replace.el
parent6a99c272837ee61fa361007ffce3069feb704a32 (diff)
downloademacs-7e1d31d4604a0525afd6b25cb1bf31bd23fe9db9.tar.gz
* replace.el (occur-mode-goto-occurrence): Pop, don't switch.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index e74b8690c28..f269baef9f1 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -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)))
- (switch-to-buffer (marker-buffer pos))
+ (pop-to-buffer (marker-buffer pos))
(goto-char pos)))
(defun occur-mode-goto-occurrence-other-window ()