[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 10:51:05 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
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 <first_initiallastname@one.dot.net> 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 <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
> =================================================
--
(. .)
=ooO=(_)=Ooo=====================================
Chris McMahan | first_initiallastname@one.dot.net
=================================================