Function: format-find-file
format-find-file is an interactive and byte-compiled function defined
in format.el.gz.
Signature
(format-find-file FILENAME FORMAT)
Documentation
Find the file FILENAME using data format FORMAT.
If FORMAT is nil then do not do any format conversion.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/format.el.gz
(defun format-find-file (filename format)
"Find the file FILENAME using data format FORMAT.
If FORMAT is nil then do not do any format conversion."
(interactive
;; Same interactive spec as write-file, plus format question.
(let* ((file (read-file-name "Find file: "))
(fmt (format-read (format-message "Read file `%s' in format: "
(file-name-nondirectory file)))))
(list file fmt)))
(let ((format-alist nil))
(with-suppressed-warnings ((interactive-only find-file))
(find-file filename)))
(if format
(format-decode-buffer format)))