From: Shelagh Manton <shelagh.manton@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Orgmodeorg-export-generic gives an error
Date: Tue, 21 Jul 2009 23:32:21 +0000 (UTC) [thread overview]
Message-ID: <h45j64$lr7$1@ger.gmane.org> (raw)
In-Reply-To: sd1vob3rp1.fsf@wes.hardakers.net
On Mon, 20 Jul 2009 15:39:06 -0700, Wes Hardaker wrote:
>>>>>> On Fri, 17 Jul 2009 20:19:19 +0000 (UTC), srinivas
>>>>>> <sp_us@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
next prev parent reply other threads:[~2009-07-21 23:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 18:05 org-export-generic gives an error srinivas
2009-07-16 22:50 ` Bastien
2009-07-17 19:23 ` Nathan Neff
2009-07-17 20:19 ` srinivas
2009-07-20 14:48 ` Nathan Neff
2009-07-20 22:39 ` Orgmodeorg-export-generic " Wes Hardaker
2009-07-21 5:53 ` Bastien
2009-07-21 23:32 ` Shelagh Manton [this message]
2009-07-21 23:59 ` Bastien
2009-07-22 15:13 ` Wes Hardaker
2009-07-22 23:33 ` Shelagh Manton
2009-07-23 7:33 ` Bastien
2009-07-23 7:11 ` Bastien
2009-07-23 14:31 ` James TD Smith
2009-08-10 15:42 ` Wes Hardaker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='h45j64$lr7$1@ger.gmane.org' \
--to=shelagh.manton@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.