]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warning in previous sendmail.el change
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 20 Feb 2022 12:45:56 +0000 (13:45 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 20 Feb 2022 12:45:56 +0000 (13:45 +0100)
* lisp/mail/sendmail.el (mm-long-lines-p): Fix compilation warning.

lisp/mail/sendmail.el

index 0d3eeecd8c8aa56fe3da0dbf4110ab37fb23e569..c55cdc8412aada65df76b178eb602df3099772f0 100644 (file)
@@ -877,7 +877,7 @@ The variable is used to trigger insertion of the \"Mail-Followup-To\"
 header when sending a message to a mailing list."
   :type '(repeat string))
 
-(declare-function mml-to-mime "mml" ())
+(declare-function mm-long-lines-p "mm-bodies" (length))
 
 (defun mail-send ()
   "Send the message in the current buffer.
@@ -955,6 +955,7 @@ the user from the mailer."
              (error "Invalid header line (maybe a continuation line lacks initial whitespace)"))
            (forward-line 1)))
        (goto-char opoint)
+        (require 'mml)
        (when (or mail-encode-mml
                   ;; When we have long lines, we have to MIME encode
                   ;; to get line folding.