changeset 67179:cfc0110bc143

* replace.el (occur-mode-goto-occurrence): Pop, don't switch.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 28 Nov 2005 19:18:51 +0000
parents db5dfb03d180
children 8d028f859146
files lisp/ChangeLog lisp/replace.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <cyd@stupidchicken.com>
+
+	* replace.el (occur-mode-goto-occurrence): Pop, don't switch.
+
 2005-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* textmodes/flyspell.el (flyspell-last-buffer): New var.
--- 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 ()