diff options
| author | Juri Linkov | 2010-05-21 01:55:11 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-05-21 01:55:11 +0300 |
| commit | f66a2f90f69e8f8d73f06759cb2ae0fd2850ead3 (patch) | |
| tree | ffd10d1f79e1bd2fb8453e077ed8d298fb26f1a8 | |
| parent | 201d895a4a7bb8bc4370d87aead05e12540cf93b (diff) | |
| download | emacs-f66a2f90f69e8f8d73f06759cb2ae0fd2850ead3.tar.gz emacs-f66a2f90f69e8f8d73f06759cb2ae0fd2850ead3.zip | |
* locate.el (locate): Use pop-to-buffer instead of
switch-to-buffer-other-window. (Bug#6204)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/locate.el | 2 |
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 @@ | |||
| 1 | 2010-05-20 Juri Linkov <juri@jurta.org> | 1 | 2010-05-20 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * locate.el (locate): Use pop-to-buffer instead of | ||
| 4 | switch-to-buffer-other-window. (Bug#6204) | ||
| 5 | |||
| 6 | 2010-05-20 Juri Linkov <juri@jurta.org> | ||
| 7 | |||
| 3 | * replace.el (replace-highlight): Fix lazy-highlighting | 8 | * replace.el (replace-highlight): Fix lazy-highlighting |
| 4 | for `M-s w str M-% str RET'. | 9 | for `M-s w str M-% str RET'. |
| 5 | 10 | ||
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." | |||
| 326 | (locate-do-setup search-string) | 326 | (locate-do-setup search-string) |
| 327 | )) | 327 | )) |
| 328 | (and (not (string-equal (buffer-name) locate-buffer-name)) | 328 | (and (not (string-equal (buffer-name) locate-buffer-name)) |
| 329 | (switch-to-buffer-other-window locate-buffer-name)) | 329 | (pop-to-buffer locate-buffer-name)) |
| 330 | 330 | ||
| 331 | (run-hooks 'dired-mode-hook) | 331 | (run-hooks 'dired-mode-hook) |
| 332 | (dired-next-line 3) ;move to first matching file. | 332 | (dired-next-line 3) ;move to first matching file. |