From: Trevor Murphy Date: Sat, 22 Sep 2018 23:42:20 +0000 (-0700) Subject: Allow user customization to affect display of *Find* buffer. X-Git-Tag: emacs-27.0.90~4369 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c973a0f15efe173671d82ac9a6ba67d5a592dc2e;p=emacs.git 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'. --- 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.