[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error

From: James TD Smith
Subject: Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error
Date: Thu, 23 Jul 2009 15:31:19 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On 2009-07-23 09:11:00(+0200), Bastien wrote:
> Wes Hardaker <address@hidden> writes:
> >>>>>> On Wed, 22 Jul 2009 01:59:12 +0200, Bastien <address@hidden> said:
> >
> > B> Those two functions come from alist.el which is included in Apel:
> >
> > So does that mean it's safe to leave the functions in use within
> > org-export generic,
> AFAIK `set-alist' is not defined in vanilla Emacs. So no, it's not safe
> to leave this function in use in org-export-generic.el.
> > or should I replace it with a locally defined
> > slightly-different-named version?
> Either do that or advertize the need for the Apel package, or integrate
> what set-alist does without even creating a function.  Up to you :)

You could use the aput function instead. which does the same thing. It's in
assoc.el which is included with both GNU Emacs and XEmacs.

,-----< C-h f aput RET >
| aput is a compiled Lisp function in `assoc.el'.
| (aput alist-symbol key &optional value)
| Inserts a key-value pair into an alist.
| The alist is referenced by alist-symbol. The key-value pair is made
| from key and optionally, value. Returns the altered alist or nil if
| ALIST is nil.
| If the key-value pair referenced by key can be found in the alist, and
| value is supplied non-nil, then the value of key will be set to value.
| If value is not supplied, or is nil, the key-value pair will not be
| modified, but will be moved to the head of the alist. If the key-value
| pair cannot be found in the alist, it will be inserted into the head
| of the alist (with value nil if value is nil or not supplied).


|-<James TD Smith>-<email/address@hidden>-|

reply via email to

[Prev in Thread] Current Thread [Next in Thread]