Function: mh-mh-compose-external-type
mh-mh-compose-external-type is an autoloaded, interactive and
byte-compiled function defined in mh-mime.el.gz.
Signature
(mh-mh-compose-external-type ACCESS-TYPE HOST FILENAME TYPE &optional DESCRIPTION ATTRIBUTES PARAMETERS COMMENT)
Documentation
Add tag to refer to a remote file.
This command is a general utility for referencing external files. In fact, all of the other commands that insert directives to access external files call this command. You are prompted for the ACCESS-TYPE, remote HOST and FILENAME, and content TYPE. If you provide a prefix argument, you are also prompted for a content DESCRIPTION, ATTRIBUTES, PARAMETERS, and a COMMENT.
See also M-x mh-mh-to-mime (mh-mh-to-mime).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
;;;###mh-autoload
(defun mh-mh-compose-external-type (access-type host filename type
&optional description
attributes parameters
comment)
"Add tag to refer to a remote file.
This command is a general utility for referencing external files.
In fact, all of the other commands that insert directives to
access external files call this command. You are prompted for the
ACCESS-TYPE, remote HOST and FILENAME, and content TYPE. If you
provide a prefix argument, you are also prompted for a content
DESCRIPTION, ATTRIBUTES, PARAMETERS, and a COMMENT.
See also \\[mh-mh-to-mime]."
(interactive (list
(completing-read "Access type: " mh-access-types)
(read-string "Remote host: ")
(read-string "Remote filename: ")
(mh-minibuffer-read-type "DUMMY-FILENAME")
(if current-prefix-arg (mml-minibuffer-read-description))
(if current-prefix-arg (read-string "Attributes: "))
(if current-prefix-arg (read-string "Parameters: "))
(if current-prefix-arg (read-string "Comment: "))))
(beginning-of-line)
(insert "#@" type)
(and attributes
(insert "; " attributes))
(and comment
(insert " (" comment ") "))
(insert " [")
(and description
(insert description))
(insert "] ")
(insert "access-type=" access-type "; ")
(insert "site=" host)
(insert "; name=" (file-name-nondirectory filename))
(let ((directory (file-name-directory filename)))
(and directory
(insert "; directory=\"" directory "\"")))
(and parameters
(insert "; " parameters))
(insert "\n"))