summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2010-05-21 01:55:11 +0300
committerJuri Linkov <juri@jurta.org>2010-05-21 01:55:11 +0300
commitf66a2f90f69e8f8d73f06759cb2ae0fd2850ead3 (patch)
treeffd10d1f79e1bd2fb8453e077ed8d298fb26f1a8
parent201d895a4a7bb8bc4370d87aead05e12540cf93b (diff)
downloademacs-f66a2f90f69e8f8d73f06759cb2ae0fd2850ead3.tar.gz
* locate.el (locate): Use pop-to-buffer instead of
switch-to-buffer-other-window. (Bug#6204)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/locate.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f2d78e92c8..7c6ec59aa64 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
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
for `M-s w str M-% str RET'.
diff --git a/lisp/locate.el b/lisp/locate.el
index d0021dfed22..f1983a3e18a 100644
--- a/lisp/locate.el
+++ b/lisp/locate.el
@@ -326,7 +326,7 @@ ARG is the interactive prefix arg."
(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.