From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61587 Path: news.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: nnml-directory not customizable Date: Mon, 19 Dec 2005 16:41:01 -0500 Message-ID: References: <15901.1134757942@olgas.newt.com> <17279.1134762638@olgas.newt.com> <13295.1135024762@olgas.newt.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135028768 2868 80.91.229.2 (19 Dec 2005 21:46:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 21:46:08 +0000 (UTC) Original-X-From: ding-owner+m10119@lists.math.uh.edu Mon Dec 19 22:46:07 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoSmz-0001P9-9F for ding-account@gmane.org; Mon, 19 Dec 2005 22:43:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EoSml-0000pF-00; Mon, 19 Dec 2005 15:43:11 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EoSkp-0000pA-00 for ding@lists.math.uh.edu; Mon, 19 Dec 2005 15:41:11 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EoSkn-0003lP-N6 for ding@lists.math.uh.edu; Mon, 19 Dec 2005 15:41:11 -0600 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EoSkm-0000iH-00 for ; Mon, 19 Dec 2005 22:41:08 +0100 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.12.4/8.9.2) with ESMTP id jBJLf6YW022134 for ; Mon, 19 Dec 2005 16:41:07 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.12.4/8.9.2) with ESMTP id jBJLf6aQ022268; Mon, 19 Dec 2005 16:41:06 -0500 (EST) Original-Received: from contents-vnder-pressvre.mit.edu (CONTENTS-VNDER-PRESSVRE.MIT.EDU [18.7.16.67]) ) by outgoing-legacy.mit.edu (8.12.4/8.12.4) with ESMTP id jBJLf2Mu012984; Mon, 19 Dec 2005 16:41:02 -0500 (EST) Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUGBgS83KhoOivUeFmC pXj4o39qeFZD1JPmAAACOklEQVR4nE2UQY/bIBCFkVPlbpX0bA2tz7sQcl5SlnsWc7cclv// E/oGjNNxokjz8eYxA7HwR9xLKQGRC4eQezqUj7KWnDOzAOB3EjaBKDl4KPARzkvpAIqoUTwI a2op6WVoeXHOlfgsnJPM1kl0SdMIFEJ0AaIJshiRhkCsHbC/51LycKDmgiw2jVJy9B9IDPNN U5NkSMQoR+c5/zTW3qjZgwg5ylpJ2YT4wubO7FEVEs0NhvPJaqzxDaDS2gUpGUjyDkau9NxB fKsmu4Ir2XSpwAjxYwfsfeqlbJwqcAwwcLINxGRWtIhhMEB7ZLoAJudd4aE42e4RCQDjYMXK CpS6XOBtNM7EVfPAbRgihfU08Sg9jqIr9G9JJuo70cCty66gwY6kzJ9xIygyJs7mDNQcSEUV iPSE1qt5mLgUkcGj8ExTbrvii2CwG3UCQkxUXDUPE03KIqPw8Iq33IBfUcbw/Ez9eeo8VvPr qrRNj2RU1DjeaN6cG8c6RKVNnTg+GIDWfAkPBVdK2jC84fCq4n4yik+VNICNtoPlPkScrKmh bPw+FIGSYmBrOUPeNfATjajPpFXtMl0Hvyt4imfzqDvC9zZ3cAEYvlt/ADq7rvDbNKj3RuxC B7gsZRWzbSAaymNXSPxjia8id1GmV6kUyjDMf9vd3daXAiYFd4GvXNzmaT7AspRyJnoif6Nn Ob8UC94fN6KybTSbvB0e46d3Tyzm+I7v4QWW5WGswZulXFNyv/4DGFvqYRv4BxSm28ZwQ4mv AAAAAElFTkSuQmCC X-Face: &OO..E]'&$Q?jm[7H$]lCS"t#FD[|jK.HfvP#![KZ`/,O)lQ(pE<2QS1i~K3+u\{Bh"(4h4G0W#R-F2zZNO6n\!8bk;tu%)f>y{C` P*^7yM`e/x"b1q[?^-9zxTp In-Reply-To: <13295.1135024762@olgas.newt.com> (Bill Wohler's message of "Mon, 19 Dec 2005 12:39:22 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (usg-unix-v) X-Spam-Score: -2.599 X-Spam-Flag: NO X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.0 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61587 Archived-At: Bill Wohler 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