[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus-secondary-select-methods and use of variables
From: |
Teemu Likonen |
Subject: |
Re: gnus-secondary-select-methods and use of variables |
Date: |
Sun, 02 May 2010 08:57:33 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (gnu/linux) |
* 2010-05-01 19:50 (+0200), Cecil Westerhof wrote:
> I would like to do something like the following:
> (setq gnus-secondary-select-methods
> '(
> (nnimap "gmail"
> (nnimap-address "imap.gmail.com")
> (nnimap-stream ssl)
> (nnimap-authinfo-file (symbol-value imap-authinfo-file))
> )
> (nnimap "e-mail"
> (nnimap-address (symbol-value imap-own-server))
> (nnimap-stream tls)
> (nnimap-authinfo-file (symbol-value imap-authinfo-file))
> )
> ))
>
> I need to use the real values. Is there a way I could use variables to
> set gnus-secondary-select-methods?
I'm not sure what "the real values" are but if I understand correctly,
your question is more about Lisp rather than about Gnus. Do you want to
evaluate some variables (expressions) in a list that is mostly constant?
Like this:
`(foo ,gnus-version bar)
=> (foo "Gnus v5.13" bar)
Inside `-quotation ,-prefixed expressions are evaluated. Everything else
is taken literally. So maybe you want something like this:
(setq gnus-secondary-select-methods
`((nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-stream ssl)
(nnimap-authinfo-file ,some-variable))
...))