>>>>> On Fri, 17 Jul 2009 20:19:19 +0000 (UTC), srinivas <[email protected]> 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 ______________/
\__________________/
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode