# HG changeset patch # User Chong Yidong # Date 1133205531 0 # Node ID cfc0110bc143002116fecbc03c7a560c027290b3 # Parent db5dfb03d1805ae7b409b9c20ce46f80e7963a99 * replace.el (occur-mode-goto-occurrence): Pop, don't switch. diff -r db5dfb03d180 -r cfc0110bc143 lisp/ChangeLog --- a/lisp/ChangeLog Mon Nov 28 16:44:37 2005 +0000 +++ b/lisp/ChangeLog Mon Nov 28 19:18:51 2005 +0000 @@ -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 -r db5dfb03d180 -r cfc0110bc143 lisp/replace.el --- a/lisp/replace.el Mon Nov 28 16:44:37 2005 +0000 +++ b/lisp/replace.el Mon Nov 28 19:18:51 2005 +0000 @@ -770,7 +770,7 @@ "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 ()