summaryrefslogtreecommitdiff
path: root/lisp/gnus/mm-encode.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-01-30 00:40:21 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-01-30 12:29:58 -0500
commit9e96fca53dbd9f52b69341dbb5d9849fd2b5a16c (patch)
tree64fe3d0bca876bd8cc4710020b64f162d6089592 /lisp/gnus/mm-encode.el
parentd6f8bce6d4595bc1af53772fa0f302e16adcbf23 (diff)
downloademacs-9e96fca53dbd9f52b69341dbb5d9849fd2b5a16c.tar.gz
emacs-9e96fca53dbd9f52b69341dbb5d9849fd2b5a16c.tar.bz2
emacs-9e96fca53dbd9f52b69341dbb5d9849fd2b5a16c.zip
* lisp/gnus/mm-encode.el (mm-default-file-type): New name
Rename from misleading `mm-default-file-encoding`. (mm-default-file-encoding): Redefine as obsolete alias. * lisp/mail/sendmail.el (mail-add-attachment): * lisp/mh-e/mh-mime.el (mh-minibuffer-read-type): * lisp/gnus/gnus-art.el (gnus-mime-view-part-as-type-internal): * lisp/gnus/gnus-dired.el (gnus-dired-attach): * lisp/gnus/mml.el (mml-generate-mime-1, mml-minibuffer-read-type) (mml-attach-file): Use the new name.
Diffstat (limited to 'lisp/gnus/mm-encode.el')
-rw-r--r--lisp/gnus/mm-encode.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/gnus/mm-encode.el b/lisp/gnus/mm-encode.el
index 8bd3e0b3d2d..31d613146b3 100644
--- a/lisp/gnus/mm-encode.el
+++ b/lisp/gnus/mm-encode.el
@@ -98,9 +98,12 @@ This variable should never be set directly, but bound before a call to
boundary))
;;;###autoload
-(defun mm-default-file-encoding (file)
- "Return a default encoding for FILE."
- (if (not (string-match "\\.[^.]+$" file))
+(define-obsolete-function-alias 'mm-default-file-encoding
+ #'mm-default-file-type "future") ;Old bad name.
+;;;###autoload
+(defun mm-default-file-type (file)
+ "Return a default content type for FILE."
+ (if (not (string-match "\\.[^.]+\\'" file))
"application/octet-stream"
(mailcap-extension-to-mime (match-string 0 file))))