From: Chong Yidong Date: Mon, 28 Nov 2005 19:18:51 +0000 (+0000) Subject: * replace.el (occur-mode-goto-occurrence): Pop, don't switch. X-Git-Tag: emacs-pretest-22.0.90~5625 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7e1d31d4604a0525afd6b25cb1bf31bd23fe9db9;p=emacs.git * replace.el (occur-mode-goto-occurrence): Pop, don't switch. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7d25566c12e..88004d84047 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2005-11-28 Chong Yidong + + * replace.el (occur-mode-goto-occurrence): Pop, don't switch. + 2005-11-28 Stefan Monnier * textmodes/flyspell.el (flyspell-last-buffer): New var. 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 ()