changeset 108722:0d6255a71f15

* locate.el (locate): Use pop-to-buffer instead of switch-to-buffer-other-window. (Bug#6204)
author Juri Linkov <juri@jurta.org>
date Fri, 21 May 2010 01:55:11 +0300
parents c465f7b92264
children 0f1244b4539c
files lisp/ChangeLog lisp/locate.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri May 21 01:49:53 2010 +0300
+++ b/lisp/ChangeLog	Fri May 21 01:55:11 2010 +0300
@@ -1,3 +1,8 @@
+2010-05-20  Juri Linkov  <juri@jurta.org>
+
+	* locate.el (locate): Use pop-to-buffer instead of
+	switch-to-buffer-other-window.  (Bug#6204)
+
 2010-05-20  Juri Linkov  <juri@jurta.org>
 
 	* replace.el (replace-highlight): Fix lazy-highlighting
--- a/lisp/locate.el	Fri May 21 01:49:53 2010 +0300
+++ b/lisp/locate.el	Fri May 21 01:55:11 2010 +0300
@@ -326,7 +326,7 @@
 	(locate-do-setup search-string)
 	))
     (and (not (string-equal (buffer-name) locate-buffer-name))
-	(switch-to-buffer-other-window locate-buffer-name))
+	(pop-to-buffer locate-buffer-name))
 
     (run-hooks 'dired-mode-hook)
     (dired-next-line 3)			;move to first matching file.