Mercurial > emacs
changeset 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 | 874b471d6635 |
children | d80a8a46437e |
files | lisp/dired.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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)