From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: A macro and an unwanted containing list in the resulting form Date: Wed, 23 May 2007 15:14:37 +0200 Message-ID: References: <873b1nye2g.fsf@moley.org> <87y7jfwvnt.fsf@moley.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179926131 20346 80.91.229.12 (23 May 2007 13:15:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 13:15:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Sebastian Tennant" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 23 15:15:22 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HqqgO-00021M-WA for geh-help-gnu-emacs@m.gmane.org; Wed, 23 May 2007 15:15:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqqgQ-0000sB-GY for geh-help-gnu-emacs@m.gmane.org; Wed, 23 May 2007 09:15:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hqqfo-0000Tl-Aa for help-gnu-emacs@gnu.org; Wed, 23 May 2007 09:14:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hqqfm-0000R9-Sa for help-gnu-emacs@gnu.org; Wed, 23 May 2007 09:14:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqqfm-0000Qw-Ic for help-gnu-emacs@gnu.org; Wed, 23 May 2007 09:14:38 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hqqfm-0007BP-AB for help-gnu-emacs@gnu.org; Wed, 23 May 2007 09:14:38 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h26so224687wxd for ; Wed, 23 May 2007 06:14:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ip8ViAODel+XuJ66id+gicvThzM4QT1KJnMaY9Ntnek+T3zndrTlgub2G5Kd8mJTzsdB5XCMGqqP1bjS/mBDfgmvIgsmLtpYXljoonXCH4LiPT8ZubmGwGRJYRgukCqFoPo40hMJl/mNIX9EVO6eVRnKAwgANjmCg30I+xGoGm4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZRUqoGfGDsCjCJBTTnLvnbx88DvZy/rFvPgLa5kV3FEDkuVPL3K8DKkBMV0346puRbxTVaVaQAGZvudDRzhO3+8/Nv2uvqcmEKYm4ZwvrrpwssgZsfzjsZW6SXBFIZmHVxyzQ8C5VfedayoVKw1mbkTyBY+QP4wQpBJCzO/UOGw= Original-Received: by 10.90.72.10 with SMTP id u10mr330999aga.1179926077925; Wed, 23 May 2007 06:14:37 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Wed, 23 May 2007 06:14:37 -0700 (PDT) In-Reply-To: <87y7jfwvnt.fsf@moley.org> Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44327 Archived-At: On 5/23/07, Sebastian Tennant 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