]> git.eshelyaron.com Git - emacs.git/commitdiff
* locate.el (locate): Use pop-to-buffer instead of
authorJuri Linkov <juri@jurta.org>
Thu, 20 May 2010 22:55:11 +0000 (01:55 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 20 May 2010 22:55:11 +0000 (01:55 +0300)
switch-to-buffer-other-window.  (Bug#6204)

lisp/ChangeLog
lisp/locate.el

index 1f2d78e92c868616e1cb1a19a052ac9518a7416c..7c6ec59aa64b06ac6ffbaf47a5ff7a673700ae1d 100644 (file)
@@ -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
index d0021dfed22ed1e57db201c66e5408b9ffdf31db..f1983a3e18a28c0f404bdf32e50421bf5f4a6304 100644 (file)
@@ -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.