diff options
| author | Trevor Murphy | 2018-09-22 16:42:20 -0700 |
|---|---|---|
| committer | Eli Zaretskii | 2018-09-29 09:39:28 +0300 |
| commit | c973a0f15efe173671d82ac9a6ba67d5a592dc2e (patch) | |
| tree | e742e2b2fd6487d3bbbc556264888dbcfce69256 | |
| parent | 804f9e74de17cc68355d32bfb66710fd5b6b47b7 (diff) | |
| download | emacs-c973a0f15efe173671d82ac9a6ba67d5a592dc2e.tar.gz emacs-c973a0f15efe173671d82ac9a6ba67d5a592dc2e.zip | |
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'.
| -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." | |||
| 144 | ;; Check that it's really a directory. | 144 | ;; Check that it's really a directory. |
| 145 | (or (file-directory-p dir) | 145 | (or (file-directory-p dir) |
| 146 | (error "find-dired needs a directory: %s" dir)) | 146 | (error "find-dired needs a directory: %s" dir)) |
| 147 | (switch-to-buffer (get-buffer-create "*Find*")) | 147 | (pop-to-buffer-same-window (get-buffer-create "*Find*")) |
| 148 | 148 | ||
| 149 | ;; See if there's still a `find' running, and offer to kill | 149 | ;; See if there's still a `find' running, and offer to kill |
| 150 | ;; it first, if it is. | 150 | ;; it first, if it is. |