* nnml-active-file customization
@ 2005-09-19 12:41 romeomedina
2005-09-19 13:18 ` Albert Reiner
0 siblings, 1 reply; 4+ messages in thread
From: romeomedina @ 2005-09-19 12:41 UTC (permalink / raw)
Hi.
I put in my ~/.emacs the following:
(setq my-nnml-directory "/path/to/my/nnml/directory/")
, and in my ~/.gnus.el the following
(see thread 'nnml-direcory customiztion' on the present newsgroup):
(setq gnus-select-method
`(nnml ""
(nnml-directory ,my-nnml-directory)))
, and it worked fine. Now, if I implement the gnus-select-method
setting this way:
(setq gnus-select-method
`(nnml ""
(nnml-directory ,my-nnml-directory)
(nnml-active-file "/path/to/my/nnml/directory/bla-bla/active")
))
, everything seems to be all right: I get no error messages.
Instead, if I do:
(setq gnus-select-method
`(nnml ""
(nnml-directory ,my-nnml-directory)
(nnml-active-file (concat my-nnml-directory "bla-bla/active"))
))
, when starting gnus I get an error message:
Wrong type argument: stringp, (concat my-nnml-directory
"bla-bla/active")
. I also tried with:
(setq gnus-select-method
`(nnml ""
(nnml-directory ,my-nnml-directory)
`(nnml-active-file (concat ,my-nnml-directory "bla-bla/active"))
))
. This way I get no error messages but if I do: 'C-h v nnml-active-file
RET'
I see that the value of 'nnml-active-file' is not what I want,
i.e. "/path/to/my/nnml/directory/bla-bla/active".
Any suggestion about what the right syntax should be in ~/.gnus.el
in order to set 'nnml-active-file' to the desired value using 'concat'?
Thanks,
Rodolfo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnml-active-file customization
2005-09-19 12:41 nnml-active-file customization romeomedina
@ 2005-09-19 13:18 ` Albert Reiner
2005-09-19 15:45 ` David Z Maze
0 siblings, 1 reply; 4+ messages in thread
From: Albert Reiner @ 2005-09-19 13:18 UTC (permalink / raw)
[romeomedina@libero.it, 19 Sep 2005 05:41:28 -0700]:
> Instead, if I do:
>
> (setq gnus-select-method
> `(nnml ""
> (nnml-directory ,my-nnml-directory)
> (nnml-active-file (concat my-nnml-directory "bla-bla/active"))
> ))
>
> , when starting gnus I get an error message:
>
> Wrong type argument: stringp, (concat my-nnml-directory
> "bla-bla/active")
>
> . I also tried with:
>
> (setq gnus-select-method
> `(nnml ""
> (nnml-directory ,my-nnml-directory)
> `(nnml-active-file (concat ,my-nnml-directory "bla-bla/active"))
> ))
>
Provided backticks work as in Common Lisp (I didn't even know that
Elisp has them), you probably want
`(nnml ... (nnml-active-file (concat ,my-nnml-directory ...)))
i.e., only one level of backticks.
HTH,
Albert.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnml-active-file customization
2005-09-19 13:18 ` Albert Reiner
@ 2005-09-19 15:45 ` David Z Maze
2005-09-20 13:15 ` romeomedina
0 siblings, 1 reply; 4+ messages in thread
From: David Z Maze @ 2005-09-19 15:45 UTC (permalink / raw)
Albert Reiner <areiner@tph.tuwien.ac.at> writes:
> Provided backticks work as in Common Lisp (I didn't even know that
> Elisp has them), you probably want
>
> `(nnml ... (nnml-active-file (concat ,my-nnml-directory ...)))
>
> i.e., only one level of backticks.
...except that you probably actually want
`(nnml ... (nnml-active-file ,(concat my-nnml-directory ...)))
so that, in the result, the cdr of the cons cell whose car is
'nnml-active-file is the result of the concat call, not the list
'(concat "/nnml/directory/name" "stuff").
--dzm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnml-active-file customization
2005-09-19 15:45 ` David Z Maze
@ 2005-09-20 13:15 ` romeomedina
0 siblings, 0 replies; 4+ messages in thread
From: romeomedina @ 2005-09-20 13:15 UTC (permalink / raw)
Thanks!
It seems to work with:
`(nnml ... (nnml-active-file ,(concat my-nnml-directory
"bla-bla/active")))
. Cheers,
Rodolfo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-20 13:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-19 12:41 nnml-active-file customization romeomedina
2005-09-19 13:18 ` Albert Reiner
2005-09-19 15:45 ` David Z Maze
2005-09-20 13:15 ` romeomedina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).