emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: George McNinch <gmcninch@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mime-htmlize
Date: Fri, 28 Dec 2012 08:27:16 -0700	[thread overview]
Message-ID: <87ip7mqjsb.fsf@gmail.com> (raw)
In-Reply-To: <87obhejjve.fsf@gmail.com> (George McNinch's message of "Fri, 28 Dec 2012 10:07:17 -0500")

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

George McNinch <gmcninch@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,


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Pass-the-dir-option-on-through-org-export-as-string.patch --]
[-- Type: text/x-patch, Size: 885 bytes --]

From cf2128fb320f714f78fa54b953405d01fa73bf33 Mon Sep 17 00:00:00 2001
From: Eric Schulte <eric.schulte@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


[-- Attachment #3: Type: text/plain, Size: 46 bytes --]


-- 
Eric Schulte
http://cs.unm.edu/~eschulte

  reply	other threads:[~2012-12-28 15:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 15:07 org-mime-htmlize George McNinch
2012-12-28 15:27 ` Eric Schulte [this message]
2012-12-28 16:40   ` org-mime-htmlize Bastien
2012-12-31 18:44     ` org-mime-htmlize George McNinch
2013-01-01 16:35       ` org-mime-htmlize Bastien
2013-01-01 22:55         ` org-mime-htmlize George McNinch
2013-01-01 23:34           ` org-mime-htmlize Bastien
  -- strict thread matches above, loose matches on Subject: below --
2022-07-04  7:55 org-mime-htmlize Joseph Vidal-Rosset

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip7mqjsb.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gmcninch@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).