From: "Dr. Shred" <steve@sprangle.com>
Subject: Re: associative list won't append variable contents
Date: Tue, 14 Feb 2006 05:19:52 GMT [thread overview]
Message-ID: <YLdIf.12987$2O6.9326@newssvr12.news.prodigy.com> (raw)
In-Reply-To: <873bj4wuw7.fsf@robotron.kosmorama>
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
next prev parent reply other threads:[~2006-02-14 5:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 5:18 associative list won't append variable contents Dr. Shred
2006-01-31 10:31 ` David Hansen
2006-02-14 5:19 ` Dr. Shred [this message]
2006-02-14 9:42 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='YLdIf.12987$2O6.9326@newssvr12.news.prodigy.com' \
--to=steve@sprangle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).