]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-find-file): Allow specifying coding system interactively.
authorKenichi Handa <handa@m17n.org>
Wed, 26 Feb 1997 12:05:50 +0000 (12:05 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 26 Feb 1997 12:05:50 +0000 (12:05 +0000)
lisp/dired.el

index ffb6bd22831d522006232becea49a365e3f3f0b4..2d37d31540d9c50ffc90d483be80787420e5e83c 100644 (file)
@@ -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)