From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dr. Shred" Newsgroups: gmane.emacs.help Subject: Re: associative list won't append variable contents Date: Tue, 14 Feb 2006 05:19:52 GMT Organization: SBC http://yahoo.sbc.com Message-ID: References: <873bj4wuw7.fsf@robotron.kosmorama> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1139894507 865 80.91.229.2 (14 Feb 2006 05:21:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 05:21:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 14 06:21:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F8sd9-0002EN-Gb for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Feb 2006 06:21:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8sd8-0004is-W0 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Feb 2006 00:21:39 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.com.POSTED!a389c68f!not-for-mail User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <873bj4wuw7.fsf@robotron.kosmorama> Original-Lines: 38 Original-NNTP-Posting-Host: 69.231.25.83 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr12.news.prodigy.com 1139894392 ST000 69.231.25.83 (Tue, 14 Feb 2006 00:19:52 EST) Original-NNTP-Posting-Date: Tue, 14 Feb 2006 00:19:52 EST X-UserInfo1: S[OUSVREQBUYBULSNCOF_W\@PJ_^PBQLGPQRZ_MHEQR@ETUCCNSKQFCY@TXDX_WHSVB]ZEJLSNY\^J[CUVSA_QLFC^RQHUPH[P[NRWCCMLSNPOD_ESALHUK@TDFUZHBLJ\XGKL^NXA\EVHSP[D_C^B_^JCX^W]CHBAX]POG@SSAZQ\LE[DCNMUPG_VSC@VJM Original-Xref: shelby.stanford.edu gnu.emacs.help:137562 Original-To: help-gnu-emacs@gnu.org 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:33187 Archived-At: It worked. Thanks! I couldn't find this info in the emacs manual. Is there some good documentation available for emacs lisp? David Hansen wrote: > On Tue, 31 Jan 2006 05:18:25 GMT Shred wrote: > > >>(setq car-0 foo-0) >>(setq cdr-0 foo-1) >>(setq file-list (append '((car-0 . cdr-0)) file-list)) >> >>I want the contents of car-0 and cdr-0 to be the actual >>car and cdr. >> >>Lisp creates >> >>((car-0 . cdr-0)) >> >>not >> >>((foo-0 . foo-1)) >> >>Shouldn't this work? > > > The `quote' inhibits all evaluation. Either use the > `list'and `cons' function > > (append (list (cons car-0 cdr-0)) file-list) > > or the IMHO easier to read `backquote' (C-h f backquote RET > for more information): > > (append `((,car-0 . ,cdr-0)) file-list) > > David