summaryrefslogtreecommitdiff
path: root/lisp/gnus/mm-encode.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2011-09-10 11:26:12 +0300
committerEli Zaretskii <eliz@gnu.org>2011-09-10 11:26:12 +0300
commitc3760c17bd1d2b81a05c50c1b1f7236fc34adb33 (patch)
tree59d4cbf2e1871f98696e94655855643023b78c6d /lisp/gnus/mm-encode.el
parentfece895eff459a78403e5d92d5c960b54ee6bc4c (diff)
parent46c3b5e12bf78578d02e6581d87f9c72fc073ce0 (diff)
downloademacs-c3760c17bd1d2b81a05c50c1b1f7236fc34adb33.tar.gz
Add to sendmail.el a new command mail-add-attachment.
etc/NEWS: Document the new command and the alias for mail-insert-file. lisp/mail/sendmail.el (mml-to-mime, mml-attach-file) (mm-default-file-encoding): Remove autoload forms, they are replaced with autoload cookies in mml.el and mm-encode.el. (mail-add-attachment): New command. (mail-mode-map): Add a menu-bar item for mail-add-attachment. (mail-mode): Mention mail-insert-file and mail-add-attachment in the doc string. (mml-to-mime, mml-attach-file, mm-default-file-encoding): Declare. lisp/gnus/mm-encode.el (mm-default-file-encoding): Add autoload cookie. lisp/gnus/mml.el (mml-to-mime, mml-attach-file): Add autoload cookies. doc/emacs/sending.texi (Mail Misc): Document mail-add-attachment.
Diffstat (limited to 'lisp/gnus/mm-encode.el')
-rw-r--r--lisp/gnus/mm-encode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/gnus/mm-encode.el b/lisp/gnus/mm-encode.el
index 055ba475b8e..0fb0e7a0795 100644
--- a/lisp/gnus/mm-encode.el
+++ b/lisp/gnus/mm-encode.el
@@ -97,6 +97,7 @@ This variable should never be set directly, but bound before a call to
(insert "Content-Type: multipart/mixed; boundary=\"" boundary "\"\n")
boundary))
+;;;###autoload
(defun mm-default-file-encoding (file)
"Return a default encoding for FILE."
(if (not (string-match "\\.[^.]+$" file))