summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-02-26 12:05:50 +0000
committerKenichi Handa <handa@m17n.org>1997-02-26 12:05:50 +0000
commit94fa4eb82bbf19e7909dc817d17dcc88a3001c0a (patch)
tree377246a218f670b962359e6c43c6b8b1e452960a /lisp/dired.el
parent6eba8645d527f6314e71d846f3459fbee50343ef (diff)
downloademacs-94fa4eb82bbf19e7909dc817d17dcc88a3001c0a.tar.gz
(dired-find-file): Allow specifying coding system interactively.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index ffb6bd22831..2d37d31540d 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1176,12 +1176,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 ()
+(defun dired-find-file (&optional coding-system)
"In dired, visit the file or directory named on this line."
- (interactive)
+ (interactive "ZCoding-system: ")
(let ((file-name (file-name-sans-versions (dired-get-filename) t)))
(if (file-exists-p file-name)
- (find-file file-name)
+ (find-file file-name coding-system)
(error "File no longer exists; type `g' to update Dired buffer"))))
(defun dired-mouse-find-file-other-window (event)