Mercurial > emacs
diff lisp/dired.el @ 17079:7f8981eca2f7
(dired-find-file): Allow specifying coding system interactively.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 26 Feb 1997 12:05:50 +0000 |
parents | 9ec806f8bbb7 |
children | 471ce207330c |
line wrap: on
line diff
--- a/lisp/dired.el Wed Feb 26 12:03:35 1997 +0000 +++ b/lisp/dired.el Wed Feb 26 12:05:50 1997 +0000 @@ -1176,12 +1176,12 @@ ;; 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)