Function: mh-picon-file-contents
mh-picon-file-contents is a byte-compiled function defined in
mh-xface.el.gz.
Signature
(mh-picon-file-contents FILE)
Documentation
Return details about FILE.
A list of consisting of a symbol for the type of the file and the file contents as a string is returned. If FILE is nil, then both elements of the list are nil.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-xface.el.gz
(defun mh-picon-file-contents (file)
"Return details about FILE.
A list of consisting of a symbol for the type of the file and the
file contents as a string is returned. If FILE is nil, then both
elements of the list are nil."
(if (stringp file)
(with-temp-buffer
(if (fboundp 'set-buffer-multibyte)
(set-buffer-multibyte nil))
(let ((type (and (string-match ".*\\.\\(...\\)$" file)
(intern (match-string 1 file)))))
(insert-file-contents-literally file)
(list type (buffer-string))))
(list nil nil)))