help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple elisp question


From: Chris McMahan
Subject: Re: Simple elisp question
Date: Fri, 04 Aug 2006 09:53:21 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

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
  =================================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]