From Dan Nicolaescu <dann@ics.uci.edu>.
+2002-06-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * dired.el (dired-find-file): Bind find-file-run-dired around the
+ call to find-file. From Dan Nicolaescu <dann@ics.uci.edu>.
+
2002-06-18 Juanma Barranquero <lektu@terra.es>
* eshell/em-pred.el (eshell-modifier-help-string): Fix typos.
(defun dired-find-file ()
"In dired, visit the file or directory named on this line."
(interactive)
- (let ((file-name (file-name-sans-versions (dired-get-filename) t)))
+ (let ((file-name (file-name-sans-versions (dired-get-filename) t))
+ ;; bind it so that the command works on directories too,
+ ;; independent of of the user's setting
+ (find-file-run-dired t))
(if (file-exists-p file-name)
(find-file file-name)
(if (file-symlink-p file-name)