diff options
| author | Kenichi Handa | 1997-02-26 12:05:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-02-26 12:05:50 +0000 |
| commit | 94fa4eb82bbf19e7909dc817d17dcc88a3001c0a (patch) | |
| tree | 377246a218f670b962359e6c43c6b8b1e452960a | |
| parent | 6eba8645d527f6314e71d846f3459fbee50343ef (diff) | |
| download | emacs-94fa4eb82bbf19e7909dc817d17dcc88a3001c0a.tar.gz emacs-94fa4eb82bbf19e7909dc817d17dcc88a3001c0a.zip | |
(dired-find-file): Allow specifying coding system interactively.
| -rw-r--r-- | lisp/dired.el | 6 |
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." | |||
| 1176 | 1176 | ||
| 1177 | ;; Force `f' rather than `e' in the mode doc: | 1177 | ;; Force `f' rather than `e' in the mode doc: |
| 1178 | (defalias 'dired-advertised-find-file 'dired-find-file) | 1178 | (defalias 'dired-advertised-find-file 'dired-find-file) |
| 1179 | (defun dired-find-file () | 1179 | (defun dired-find-file (&optional coding-system) |
| 1180 | "In dired, visit the file or directory named on this line." | 1180 | "In dired, visit the file or directory named on this line." |
| 1181 | (interactive) | 1181 | (interactive "ZCoding-system: ") |
| 1182 | (let ((file-name (file-name-sans-versions (dired-get-filename) t))) | 1182 | (let ((file-name (file-name-sans-versions (dired-get-filename) t))) |
| 1183 | (if (file-exists-p file-name) | 1183 | (if (file-exists-p file-name) |
| 1184 | (find-file file-name) | 1184 | (find-file file-name coding-system) |
| 1185 | (error "File no longer exists; type `g' to update Dired buffer")))) | 1185 | (error "File no longer exists; type `g' to update Dired buffer")))) |
| 1186 | 1186 | ||
| 1187 | (defun dired-mouse-find-file-other-window (event) | 1187 | (defun dired-mouse-find-file-other-window (event) |