(resending in case improper subject line led to it being overlooked}
At present, it's difficult to call org-mime-htmlize noninteractively. This
trivial patch fixes that.
From ebe5dc40bafb55d019d43efe89957c3b50379553 Mon Sep 17 00:00:00 2001
From: Matt Price <[email protected]>
Date: Sat, 18 Jul 2015 16:14:33 -0400
Subject: [PATCH 3/3] org-mime.el: fix org-mime-htmlize
* org-mime.el: previously, org-mime-htmlize would throw an error if ARG
was absent, and thus could not be called uninteractively. ARG is now optional
---
contrib/lisp/org-mime.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index 197c712..43ca041 100644
--- a/contrib/lisp/org-mime.el
+++ b/contrib/lisp/org-mime.el
@@ -194,10 +194,10 @@ and images in a multipart/related part."
str)
html-images)))
-(defun org-mime-htmlize (arg)
+(defun org-mime-htmlize (&optional arg)
"Export a portion of an email body composed using `mml-mode' to
-html using `org-mode'. If called with an active region only
-export that region, otherwise export the entire body."
+ html using `org-mode'. If called with an active region only
+ export that region, otherwise export the entire body."
(interactive "P")
(require 'ox-org)
(require 'ox-html)
--
2.4.3