From: David Z Maze <dmaze@MIT.EDU>
Subject: Re: nnml-directory not customizable
Date: Mon, 19 Dec 2005 16:41:01 -0500 [thread overview]
Message-ID: <y687ja0bw9e.fsf@contents-vnder-pressvre.mit.edu> (raw)
In-Reply-To: <13295.1135024762@olgas.newt.com> (Bill Wohler's message of "Mon, 19 Dec 2005 12:39:22 -0800")
Bill Wohler <wohler@newt.com> writes:
> OK, now I get it. But there's a catch. I'd like to have something like
> the following in my customize-set-variables stanza:
>
> '(gnus-secondary-select-methods (quote ((nnml "" (nnml-directory (expand-file-name "lists" message-directory))))))
> ...
> '(message-directory "~/var/mail/")
>
> It would be nice not to have to hard-code the path to the nnml-directory
> in the secondary select method so I only have to modify
> message-directory if my directory changes.
>
> Any thoughts?
backquote! While I'm not terribly familiar with customize's
interface, I'd write this as
(setq message-directory "~/var/mail"
gnus-secondary-select-methods
`((nnml "" (nnml-directory
,(expand-file-name "lists" message-directory)))))
So at setq time, message-directory is set, then the expand-file-name
is evaluated and its contents are inserted into
gnus-secondary-select-methods. I really doubt this would play nicely
with customize at all, though (it's not going to have much luck
unparsing the backquoted form, so if you updated custom with other
things your code will probably get overwritten). And it is dependent
on the order of definition.
--dzm
next prev parent reply other threads:[~2005-12-19 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <15901.1134757942@olgas.newt.com>
[not found] ` <17279.1134762638@olgas.newt.com>
2005-12-16 23:27 ` nnml-directory not customizable (was: nnrss seems to have alternative handling switched) Reiner Steib
2005-12-19 20:39 ` nnml-directory not customizable Bill Wohler
2005-12-19 21:41 ` David Z Maze [this message]
2005-12-19 20:44 ` nnrss seems to have alternative handling switched Bill Wohler
2005-12-23 19:40 ` Bill Wohler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y687ja0bw9e.fsf@contents-vnder-pressvre.mit.edu \
--to=dmaze@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).