diff options
| author | Richard M. Stallman | 2003-05-05 21:22:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-05-05 21:22:13 +0000 |
| commit | 59d18288fe56acd8769195d6002fc01f24232dce (patch) | |
| tree | 5c852d278d8b9765d779bc1d13ab5f6334adca97 | |
| parent | 5fe3b8a4162ea344286c5dab350cbddcbc2d1bdd (diff) | |
| download | emacs-59d18288fe56acd8769195d6002fc01f24232dce.tar.gz emacs-59d18288fe56acd8769195d6002fc01f24232dce.zip | |
(dired-find-file): Bind find-file-run-dired around the call to find-file.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa25f744000..43537104c2c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -18,6 +18,11 @@ | |||
| 18 | * emacs-lisp/autoload.el (batch-update-autoloads): | 18 | * emacs-lisp/autoload.el (batch-update-autoloads): |
| 19 | Call `update-directory-autoloads'. | 19 | Call `update-directory-autoloads'. |
| 20 | 20 | ||
| 21 | 2003-05-04 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 22 | |||
| 23 | * dired.el (dired-find-file): Bind find-file-run-dired around | ||
| 24 | the call to find-file. | ||
| 25 | |||
| 21 | 2003-05-04 Stefan Monnier <monnier@cs.yale.edu> | 26 | 2003-05-04 Stefan Monnier <monnier@cs.yale.edu> |
| 22 | 27 | ||
| 23 | * uniquify.el: Move provide to end of file. | 28 | * uniquify.el: Move provide to end of file. |
diff --git a/lisp/dired.el b/lisp/dired.el index 47feb3aa50b..5397bad8b7c 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -1362,7 +1362,10 @@ Creates a buffer if necessary." | |||
| 1362 | (defun dired-find-file () | 1362 | (defun dired-find-file () |
| 1363 | "In Dired, visit the file or directory named on this line." | 1363 | "In Dired, visit the file or directory named on this line." |
| 1364 | (interactive) | 1364 | (interactive) |
| 1365 | (find-file (dired-get-file-for-visit))) | 1365 | ;; Bind `find-file-run-dired' so that the command works on directories |
| 1366 | ;; too, independent of the user's setting. | ||
| 1367 | (let ((find-file-run-dired t)) | ||
| 1368 | (find-file (dired-get-file-for-visit)))) | ||
| 1366 | 1369 | ||
| 1367 | (defun dired-find-alternate-file () | 1370 | (defun dired-find-alternate-file () |
| 1368 | "In Dired, visit this file or directory instead of the dired buffer." | 1371 | "In Dired, visit this file or directory instead of the dired buffer." |