George McNinch <gmcni...@gmail.com> writes: > Hi-- > > I did a "clean" install of elpa package > > org-plus-contrib-20121224 > > (i.e. removed old package, restarted emacs with -q flag, installed above > package, restarted emacs again...) > > Then I started gnus, started composing a message, and executed the command > > M-x org-mime-htmlize > > The result is the following error: > > org-export-as-html: Wrong type argument: stringp, t > > Here is the backtrace: >
Thanks for the report. This looks like a bug in `org-export-as-html', specifically in line 1258 or so of org-html.el the following form returns t while its calling function requires a string argument. (or pub-dir (org-export-directory :html opt-plist)) The attached patch should fix this problem, and should be an improvement generally, but I'll wait for someone more familiar with the export system than myself to approve and apply it. Best,
>From cf2128fb320f714f78fa54b953405d01fa73bf33 Mon Sep 17 00:00:00 2001 From: Eric Schulte <eric.schu...@gmx.com> Date: Fri, 28 Dec 2012 08:20:56 -0700 Subject: [PATCH] Pass the dir option on through org-export-as-string * lisp/org-exp.el (org-export-string): Pass the dir option on through to any subsequent export functions. --- lisp/org-exp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index f7155b0..3dc9a98 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -3050,7 +3050,7 @@ to the value of `temporary-file-directory'." (eval ;; convert to fmt -- mimicking `org-run-like-in-org-mode' (list 'let org-local-vars (list (intern (format "org-export-as-%s" fmt)) - nil nil nil ''string t)))) + nil nil nil ''string t dir)))) (delete-file tmp-file)))) ;;;###autoload -- 1.8.0.2
-- Eric Schulte http://cs.unm.edu/~eschulte