From: David Hansen <david.hansen@gmx.net>
Subject: Re: Simple elisp question
Date: Thu, 03 Aug 2006 20:56:20 +0200 [thread overview]
Message-ID: <871wrxveaz.fsf@robotron.kosmorama> (raw)
In-Reply-To: uejvxr9sa.fsf@HY56D61.pg.com
On Thu, 03 Aug 2006 13:47:33 -0400 Chris McMahan wrote:
> Here's a basic elisp question:
>
> I want to use the value of a variable within a list, rather than the
> name of the variable. How do I do this? Here's the code in question.
>
> (setq gnus-select-method
> '(nntp "news_server"))
>
> I want to replace the hard-coded "news_server" with the value of a
> variable I've defined called my_news_server defined with
> (setq my_news_server "news_server")
(list 'nntp my_news_server)
or the fancy way (read in th elisp manual about backquote
and unquote):
`(nntp ,my_news_server)
David
next prev parent reply other threads:[~2006-08-03 18:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 17:47 Simple elisp question Chris McMahan
2006-08-03 18:56 ` David Hansen [this message]
2006-08-03 20:20 ` Eric Hanchrow
2006-08-04 13:53 ` Chris McMahan
2006-08-04 14:51 ` Chris McMahan
-- strict thread matches above, loose matches on Subject: below --
2003-07-29 18:08 simple " Jeffery B. Rancier
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=871wrxveaz.fsf@robotron.kosmorama \
--to=david.hansen@gmx.net \
/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).