Commit 53fd9d05 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(dired-find-file): Likewise.

parent 912192d1
......@@ -1220,12 +1220,12 @@ Creates a buffer if necessary."
;; Force `f' rather than `e' in the mode doc:
(defalias 'dired-advertised-find-file 'dired-find-file)
(defun dired-find-file (&optional coding-system)
(defun dired-find-file ()
"In dired, visit the file or directory named on this line."
(interactive "ZCoding-system: ")
(let ((file-name (file-name-sans-versions (dired-get-filename) t)))
(if (file-exists-p file-name)
(find-file file-name coding-system)
(find-file file-name)
(error "File no longer exists; type `g' to update Dired buffer"))))
(defun dired-mouse-find-file-other-window (event)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment