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

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

Re: (list) and '(list)


From: Kai Grossjohann
Subject: Re: (list) and '(list)
Date: Mon, 30 Apr 2007 14:49:48 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

Pascal Bourguignon <pjb@informatimago.com> writes:

> Kai Grossjohann <kai@emptydomain.de> writes:
>> For example, to reverse the condition of `if' (proof of concept only,
>> not production code):
>>
>> (defmacro ifnot (test no yes)
>>   (if (not test) no yes))
>
> (defmacro ifnot (test no yes)
>   `(if (not ,test) ,no ,yes))

*blush*

Kai





reply via email to

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