# HG changeset patch # User Juri Linkov # Date 1274396111 -10800 # Node ID 0d6255a71f155faa3be037f23241b7cff9a7cdf5 # Parent c465f7b922649709217079cc1c5a822c1e09bd4f * locate.el (locate): Use pop-to-buffer instead of switch-to-buffer-other-window. (Bug#6204) diff -r c465f7b92264 -r 0d6255a71f15 lisp/ChangeLog --- 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 + + * locate.el (locate): Use pop-to-buffer instead of + switch-to-buffer-other-window. (Bug#6204) + 2010-05-20 Juri Linkov * replace.el (replace-highlight): Fix lazy-highlighting diff -r c465f7b92264 -r 0d6255a71f15 lisp/locate.el --- 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.