From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6836 Path: main.gmane.org!not-for-mail From: John Turner Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus 5.2.20: SAVEDIR Date: Thu, 20 Jun 1996 08:18:05 -0600 Message-ID: <199606201418.IAA10828@gielgud.lanl.gov.xdiv> References: <199606200515.XAA10443@gielgud.lanl.gov.xdiv> Reply-To: turner@lanl.gov NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147236 4916 80.91.224.250 (20 Oct 2002 20:53:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:53:56 +0000 (UTC) Cc: ding@ifi.uio.no, xemacs-beta@xemacs.org Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id HAA23272 for ; Thu, 20 Jun 1996 07:57:52 -0700 Original-Received: from mailhost.lanl.gov (mailhost.lanl.gov [128.165.3.12]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 20 Jun 1996 16:18:30 +0200 Original-Received: from xdiv.lanl.gov by mailhost.lanl.gov (8.7.5/1.2) id IAA19426; Thu, 20 Jun 1996 08:18:24 -0600 (MDT) Original-Received: from gielgud.lanl.gov.xdiv (gielgud.lanl.gov [128.165.116.68]) by xdiv.lanl.gov (8.6.12/8.6.12) with ESMTP id IAA07532; Thu, 20 Jun 1996 08:18:23 -0600 Original-Received: by gielgud.lanl.gov.xdiv (SMI-8.6/SMI-SVR4) id IAA10828; Thu, 20 Jun 1996 08:18:05 -0600 Original-To: mdb@cdc.noaa.gov In-Reply-To: Xref: main.gmane.org gmane.emacs.gnus.general:6836 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6836 Mark Borges writes: > >> On Wed, 19 Jun 1996 23:15:14 -0600, > >> John Turner(JT) wrote: > [...] > JT> The problem is that once again gnus-directory isn't being set to > JT> the value of the env. var. SAVEDIR as it should be: > > JT> gielgud.lanl.gov% echo $SAVEDIR > JT> /home/turner/Mail/News > > JT> C-h v gnus-directory: > JT> gnus-directory's value is "~/News/" > > I hate it when that happens. > > What *should* work according to my understanding of the > `gnus-directory' documentation is to > > (setq gnus-directory "/my/news/path/") > > in your gnus-init-file. But it doesn't, because all the other Gnus > file variables the doc-string talks about: > > ------------------------------------------------------------ > gnus-directory's value is "/home/mdb/Mail/news" > -- a variable declared in Lisp. > > Documentation: > *Directory variable from which all other Gnus file variables are > derived. > ------------------------------------------------------------ > > have already been set by the time gnus-init-file is read. So, for > example, you wind up with gnus-article-save-directory still pointing > at the default ("~/News"). And then bad things happen. > > The obvious fix it to have `gnus-init-file' be read earlier on in > gnus.el, but I don't know if there are any side-effects to doing > this. > > The only way I've been able to get what I want is the ugly gross way: > manually set each of these in my gnus-init-file, e.g., > ------------------------------------------------------------ > (setq > gnus-directory (expand-file-name "~/Mail/news") > gnus-nocem-directory (expand-file-name "~/Mail/news/NoCeM/") > gnus-article-save-directory gnus-directory > gnus-kill-files-directory gnus-directory > ) > ------------------------------------------------------------ > > I don't want to use SAVEDIR; my environment is polluted enough. > > But it appears from looking at gnus.el that using SAVEDIR should work > (if it's been properly exported), but you're right it doesn't. I prefer to use SAVEDIR because a number of people here use my setup stuff, and using env vars lets them put things where they want and not have to muck around in .emacs, .vm, .gnus, ... So I use env vars for a bunch of things. I use the "standard" ones like SAVEDIR and define new ones like VM_INBOX. Then in my .vm I have: (if (getenv "VM_INBOX") (setq vm-primary-inbox (getenv "VM_INBOX"))) Anyway, I have a number of things like this, and it just makes it easier for other folks to use my stuff. But back to SAVEDIR. It looks like the relevant code is right at the top of gnus.el: (defvar gnus-directory (or (getenv "SAVEDIR") "~/News/") "*Directory variable from which all other Gnus file variables are derived.") which kinda looks OK, but I'm not an elisp expert at all... +-----------------------+--------------------------------------------------+ |John A. Turner |"Music is the cup which holds the wine of silence;| |Los Alamos Natl. Lab. | sound is that cup, but empty; | |e-mail: turner@lanl.gov| noise is that cup, but broken." | | | - Robert Fripp | +-----------------------+--------------------------------------------------+