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'.
This commit is contained in:
Trevor Murphy 2018-09-22 16:42:20 -07:00 committed by Eli Zaretskii
parent 804f9e74de
commit c973a0f15e

View file

@ -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.