From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: Simple elisp question Date: Fri, 04 Aug 2006 09:53:21 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154702484 15463 80.91.229.2 (4 Aug 2006 14:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2006 14:41:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 16:41:23 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 1G90rL-0007Pn-KT for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2006 16:41:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G90rK-0000S1-NX for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2006 10:41:06 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1154699619 15465 166.84.1.5 (4 Aug 2006 13:53:39 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 4 Aug 2006 13:53:39 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:JzOewZOu+QdrvZq8LwSqMJcYqUU= Original-Xref: shelby.stanford.edu gnu.emacs.help:140854 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:36481 Archived-At: 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 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 =================================================