diff options
author | Trevor Murphy <trevor.m.murphy@gmail.com> | 2018-09-22 16:42:20 -0700 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-09-29 09:39:28 +0300 |
commit | c973a0f15efe173671d82ac9a6ba67d5a592dc2e (patch) | |
tree | e742e2b2fd6487d3bbbc556264888dbcfce69256 /lisp/find-dired.el | |
parent | 804f9e74de17cc68355d32bfb66710fd5b6b47b7 (diff) | |
download | emacs-c973a0f15efe173671d82ac9a6ba67d5a592dc2e.tar.gz |
Allow user customization to affect display of *Find* buffer.
* lisp/find-dired.el (find-dired): Use 'pop-to-buffer-same-window'
instead of 'switch-to-buffer'.
Diffstat (limited to 'lisp/find-dired.el')
-rw-r--r-- | lisp/find-dired.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el index ebd14b07579..9a798b0e399 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -144,7 +144,7 @@ use in place of \"-ls\" as the final argument." ;; Check that it's really a directory. (or (file-directory-p dir) (error "find-dired needs a directory: %s" dir)) - (switch-to-buffer (get-buffer-create "*Find*")) + (pop-to-buffer-same-window (get-buffer-create "*Find*")) ;; See if there's still a `find' running, and offer to kill ;; it first, if it is. |