mirror of https://github.com/djcb/mu.git
* mu4e: warn when org-export-string is not defined
This commit is contained in:
parent
e47646e010
commit
be9e9953b1
|
@ -150,6 +150,8 @@ and images in a multipart/related part."
|
|||
|
||||
(defun org~mu4e-mime-convert-to-html ()
|
||||
"Convert the current body to html."
|
||||
(if (not (fboundp 'org-export-string))
|
||||
(mu4e-error "require function 'org-export-string not found.")
|
||||
(let* ((begin
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
|
@ -179,7 +181,7 @@ and images in a multipart/related part."
|
|||
(goto-char begin)
|
||||
(newline)
|
||||
(insert (org~mu4e-mime-multipart
|
||||
body html (mapconcat 'identity html-images "\n"))))))
|
||||
body html (mapconcat 'identity html-images "\n")))))))
|
||||
|
||||
;; next some functions to make the org/mu4e-compose-mode switch as smooth as
|
||||
;; possible.
|
||||
|
|
Loading…
Reference in New Issue