>>>>> 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 ______________/ \__________________/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4