From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/8018 Path: main.gmane.org!not-for-mail From: kees_de_bruin@tasking.nl (Kees de Bruin) Newsgroups: gmane.emacs.gnus.general Subject: Re: Default save dir for things with an Archive-name ? Date: 25 Sep 1996 07:44:42 +0200 Sender: kimito!bruin@tasking.nl Message-ID: References: Reply-To: kees_de_bruin@tasking.nl (Kees de Bruin) NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035148250 9701 80.91.224.250 (20 Oct 2002 21:10:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:10:50 +0000 (UTC) Cc: Andrew J Cosgriff 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.6/8.6.9) with SMTP id XAA07976 for ; Tue, 24 Sep 1996 23:35:57 -0700 Original-Received: from ns.NL.net (ns.NL.net [193.78.240.1]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Wed, 25 Sep 1996 07:47:50 +0200 Original-Received: from taski by ns.NL.net (5.65b/NLnet1.3) id AA25061; Wed, 25 Sep 1996 07:42:56 +0200 Original-Received: from kimito.tasking.nl by lucca; (5.65v3.2/1.1.8.2/02Jan95-0312PM) id AA18755; Wed, 25 Sep 1996 07:44:44 +0200 Original-To: ding@ifi.uio.no (Gnus Development) In-Reply-To: Andrew J Cosgriff's message of 25 Sep 1996 07:48:09 +1000 X-Url: http://www.tasking.com/ X-Attribution: KdB Mail-Copies-To: kees_de_bruin@tasking.nl (Kees de Bruin) Original-Lines: 42 X-Mailer: Red Gnus v0.37/Emacs 19.33 Xref: main.gmane.org gmane.emacs.gnus.general:8018 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:8018 >>>>> "ajc" == Andrew J Cosgriff writes: ajc> When I go to save, say, an FAQ, or something out of ajc> alt.sources/comp.sources.*, Gnus defaults to wanting to save it as, ajc> say, ~/News/computer-security/ssh-faq - what I want to do, however, ajc> is to save it as something like ~/News/faq/computer-security/ssh-faq ajc> instead. Hello Andrew, I have the following functions in my .gnus (adjusted for your situation): | (defun kdb/faq-save-directory () | "Determine the directory where I want my FAQ files." | (expand-file-name "faq/" gnus-article-save-directory)) | | (defun kdb/gnus-article-archive-name (group) | "Return the first instance of an \"Archive-name\" in the current buffer. | This is stolen from the Gnus code." | (let ((case-fold-search t)) | (when (re-search-forward "archive-name: *\\([^ \n\t]+\\)[ \t]*$" nil t) | (nnheader-concat (kdb/faq-save-directory) | (match-string 1))))) Setting the variable `gnus-split-methods' using the above function, Gnus will save your FAQ files in the correct directory. Be careful when setting this variable. It may contain the function `gnus-article-archive-name'. It should be removed from the list. | (setq gnus-split-methods '((kdb/gnus-article-archive-name)) I hope this helps, Kees. -- Kees de Bruin kees_de_bruin@tasking.com Software Engineer http://www.tasking.com Tasking Software BV, Plotterweg 31, 3821 BB Amersfoort, The Netherlands Phone: +31-33-455 85 84 Fax: +31-33-455 10 05 CompuServe: GO TASKING ------------------[ Quality Development Tools Worldwide ]------------------