mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-22 22:11:45 -07:00
(dired-find-file): Allow specifying coding system interactively.
This commit is contained in:
parent
6eba8645d5
commit
94fa4eb82b
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue