[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Orgmodeorg-export-generic gives an error

From: Wes Hardaker
Subject: [Orgmode] Re: Orgmodeorg-export-generic gives an error
Date: Mon, 20 Jul 2009 15:39:06 -0700
User-agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.21 (linux, no MULE)

>>>>> On Fri, 17 Jul 2009 20:19:19 +0000 (UTC), srinivas <address@hidden> said:

s> Nick Dokos suggested the following fix to .emacs:

s> (if (< emacs-major-version 23)
s> (defun characterp (obj)
s> (and (char-or-string-p obj) (not (stringp obj)))))

s> Inserting this check makes org-export-generic work for me. My Emacs
s> version on Windows is 22.3.1.

(I was on vacation for a week and didn't see this problem).

I wrote export-generic under xemacs and didn't notice that there was a
function compatibility issue.

This patch to it should fix things:

diff --git a/lisp/org-export-generic.el b/lisp/org-export-generic.el
index 64dcb1f..c9fc161 100644
--- a/lisp/org-export-generic.el
+++ b/lisp/org-export-generic.el
@@ -1029,7 +1029,7 @@ REVERSE means to reverse the list if the plist match is a
      ((null prefixtype) "")
-     ((and len (characterp prefixtype))
+     ((and len (char-or-string-p prefixtype) (not (stringp prefixtype)))
       ;; sequence of chars
       (concat (make-string len prefixtype) "\n"))
      ((stringp prefixtype)

\ Wes Hardaker                           http://pontifications.hardakers.net /
 \_____ "In the bathtub of history the truth is harder to hold than ________/
       \_______ the soap, and much more difficult to find." _______/
               \_________ -- Terry Pratchett ______________/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]