[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
list
subtype)
(cond
((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 ______________/
\__________________/
- [Orgmode] org-export-generic gives an error, srinivas, 2009/07/15
- Re: [Orgmode] org-export-generic gives an error, Bastien, 2009/07/16
- Re: [Orgmode] org-export-generic gives an error, Nathan Neff, 2009/07/17
- [Orgmode] Re: org-export-generic gives an error, srinivas, 2009/07/17
- Re: [Orgmode] Re: org-export-generic gives an error, Nathan Neff, 2009/07/20
- [Orgmode] Re: Orgmodeorg-export-generic gives an error,
Wes Hardaker <=
- Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error, Bastien, 2009/07/21
- [Orgmode] Re: Orgmodeorg-export-generic gives an error, Shelagh Manton, 2009/07/21
- Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error, Bastien, 2009/07/21
- [Orgmode] Re: Orgmodeorg-export-generic gives an error, Wes Hardaker, 2009/07/22
- [Orgmode] Re: Orgmodeorg-export-generic gives an error, Shelagh Manton, 2009/07/22
- Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error, Bastien, 2009/07/23
- [Orgmode] Re: Orgmodeorg-export-generic gives an error, Bastien, 2009/07/23
- Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error, James TD Smith, 2009/07/23