From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-mime-htmlize Date: Fri, 28 Dec 2012 08:27:16 -0700 Message-ID: <87ip7mqjsb.fsf@gmail.com> References: <87obhejjve.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TobqS-0000k6-8N for emacs-orgmode@gnu.org; Fri, 28 Dec 2012 10:27:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TobqL-0005tY-LL for emacs-orgmode@gnu.org; Fri, 28 Dec 2012 10:27:36 -0500 Received: from mail-oa0-f41.google.com ([209.85.219.41]:48485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TobqL-0005tN-GL for emacs-orgmode@gnu.org; Fri, 28 Dec 2012 10:27:29 -0500 Received: by mail-oa0-f41.google.com with SMTP id k14so10095611oag.14 for ; Fri, 28 Dec 2012 07:27:27 -0800 (PST) In-Reply-To: <87obhejjve.fsf@gmail.com> (George McNinch's message of "Fri, 28 Dec 2012 10:07:17 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: George McNinch Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain George McNinch 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, --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Pass-the-dir-option-on-through-org-export-as-string.patch >From cf2128fb320f714f78fa54b953405d01fa73bf33 Mon Sep 17 00:00:00 2001 From: Eric Schulte 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 --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--