]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow user customization to affect display of *Find* buffer.
authorTrevor Murphy <trevor.m.murphy@gmail.com>
Sat, 22 Sep 2018 23:42:20 +0000 (16:42 -0700)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Sep 2018 06:39:28 +0000 (09:39 +0300)
* lisp/find-dired.el (find-dired): Use 'pop-to-buffer-same-window'
instead of 'switch-to-buffer'.

lisp/find-dired.el

index ebd14b075796af97384de236ddb228925198201b..9a798b0e39985dc87898961b6880ccc6a929a70a 100644 (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.