On Mon, 20 Jul 2009 15:39:06 -0700, Wes Hardaker wrote: >>>>>> On Fri, 17 Jul 2009 20:19:19 +0000 (UTC), srinivas >>>>>> <sp...@yahoo.com> 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)
Someone mentioned in a previous post about a function you use to create a new org-generic-alist called set-alist which is not known in gnu emacs. (defun org-set-generic-type (type definition) "Adds a TYPE and DEFINITION to the existing list of defined generic export definitions." (set-alist 'org-generic-alist type definition)) I went searching for the function. I found the library which seems to be part of the xemacs bundle. What could we use for people who use gnu emacs? Is there a function in emacs that would be a good substitute? Shelagh _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode