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 10:51:05 -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 1154706072 28810 80.91.229.2 (4 Aug 2006 15:41:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2006 15:41:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 17:41:11 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 1G91nD-0003kN-OS for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2006 17:40:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G91nD-0007JL-46 for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2006 11:40:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1154703115 14253 166.84.1.5 (4 Aug 2006 14:51:55 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 4 Aug 2006 14:51:55 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:WoD53GvNmR4PTN6wWq7b5kjasNo= Original-Xref: shelby.stanford.edu gnu.emacs.help:140859 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:36484 Archived-At: Oops! Helps to test things out before posting. Here's the final entry in my gnus file. I've used the other syntax here as an example as well for my own reference. ;;; my_news_server and my_news_ports are set in the ~/.emacs file (setq gnus-select-method (list 'nntp my_news_server (list 'nntp-port-number my_news_port))) ; alternate syntax for setting the list ;(setq gnus-select-method ; `(nntp ,my_news_server ; `(nntp-port-number ,my_news_port))) thanks to all who helped!! - Chris Chris McMahan writes: > 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 > ================================================= -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================