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: Simple elisp question Date: Thu, 03 Aug 2006 13:47:33 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154630436 9794 80.91.229.2 (3 Aug 2006 18:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 18:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 03 20:40:34 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 1G8i7V-0007pO-Ff for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Aug 2006 20:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8i7U-0003sF-7G for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Aug 2006 14:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1154627275 7031 166.84.1.5 (3 Aug 2006 17:47:55 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 3 Aug 2006 17:47:55 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:uh/R5m7uM1iTMEDGRJTdnxjx5bk= Original-Xref: shelby.stanford.edu gnu.emacs.help:140817 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:36442 Archived-At: 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 =================================================