Function: mml-minibuffer-read-type
mml-minibuffer-read-type is a byte-compiled function defined in
mml.el.gz.
Signature
(mml-minibuffer-read-type NAME &optional DEFAULT)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mml.el.gz
(defun mml-minibuffer-read-type (name &optional default)
(require 'mailcap)
(mailcap-parse-mimetypes)
(let* ((default (or default
(mm-default-file-type name)
;; Perhaps here we should check what the file
;; looks like, and offer text/plain if it looks
;; like text/plain.
"application/octet-stream"))
(string (gnus-completing-read
"Content type"
(mailcap-mime-types)
nil nil nil default)))
(if (not (equal string ""))
string
default)))