help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: A macro and an unwanted containing list in the resulting form


From: Juanma Barranquero
Subject: Re: A macro and an unwanted containing list in the resulting form
Date: Wed, 23 May 2007 15:14:37 +0200

On 5/23/07, Sebastian Tennant <address@hidden> wrote:

Hmm.  Thanks a lot.  It works.  (Now I need to grok exactly why).

Pascal Bourguignong's message contains a good deal of information, and
I'd suggest also carefully studing the Macros node of the Emacs Lisp
Reference.

BTW, Pascal suggests

 (cons 'cond ...)

instead of my

 (append '(cond) ...)

and for the life of me I don't know what was I thinking when I wrote
that. Sleep deprivation, I suppose. By all means follow Pascal's
suggestion.

The reason for the alist is the clauses are being passed as one of a
number of arguments to a function call.

Aha, I suspected as much.

            Juanma




reply via email to

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