From: Chris McMahan <first_initiallastname@one.dot.net>
Subject: Re: Simple elisp question
Date: Fri, 04 Aug 2006 09:53:21 -0400 [thread overview]
Message-ID: <u3bcc8v5a.fsf@HY56D61.pg.com> (raw)
In-Reply-To: uejvxr9sa.fsf@HY56D61.pg.com
Thanks to all who replied.
I'm going with the following format:
(setq gnus-select-method (list 'nntp my_news_server))
So here's the final entry in my .gnus file:
(setq gnus-select-method
(list 'nntp my_news_server
'nntp-port-number 9119))
- Chris
Chris McMahan <first_initiallastname@one.dot.net> writes:
> 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")
>
> I apologize for the basic nature of the quesiton, but I've not been
> able to find an answer in the elisp manual.
>
> - Chris
>
>
> --
--
(. .)
=ooO=(_)=Ooo=====================================
Chris McMahan | first_initiallastname@one.dot.net
=================================================
next prev parent reply other threads:[~2006-08-04 13:53 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
2006-08-03 20:20 ` Eric Hanchrow
2006-08-04 13:53 ` Chris McMahan [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u3bcc8v5a.fsf@HY56D61.pg.com \
--to=first_initiallastname@one.dot.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.