From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33832 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Mechaincal question Show filename of # marked Date: 21 Dec 2000 16:42:14 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035169865 27198 80.91.224.250 (21 Oct 2002 03:11:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:11:05 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 6F59FD049D for ; Thu, 21 Dec 2000 10:47:51 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id JAB24093; Thu, 21 Dec 2000 09:44:10 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 21 Dec 2000 09:42:15 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA13091 for ; Thu, 21 Dec 2000 09:42:04 -0600 (CST) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id D14B8D049D for ; Thu, 21 Dec 2000 10:42:29 -0500 (EST) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id QAA21533; Thu, 21 Dec 2000 16:42:15 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id QAA18316; Thu, 21 Dec 2000 16:42:15 +0100 (MET) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id QAA30960; Thu, 21 Dec 2000 16:42:14 +0100 Original-To: Harry Putnam X-Face: /B3twq_DELA4]7alR?%xv(/f1N;bi:NN=UlA=(1a"pKte&5/Y/9*z&8q[P}+}YgJX_9*}k_ 0E|EJBC~yEok<#VOw:9GQWq1-;PCR-hd;3|Vk]~"|EM{Q5ir5nr!HzZ,W4\k5G|QWHw45gQ*tWydTR , Original-Lines: 32 User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.95 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33832 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33832 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > (mapcar (lambda (g) > (expand-file-name g (gnus-group-real-name > gnus-newsgroup-name > "~/Mail/"))) > gnus-newsgroup-processable) I forgot a number of function calls. In particular, gnus-group-real-name only takes 1 argument, the group name. (It converts "nnml:foo.bar" into "foo.bar".) Then I need to call nnheader-group-pathname to convert the group name into a directory name. (It converts "foo.bar" into "~/Mail/foo/bar/".) And I was forgetting to convert the article number (from gnus-newsgroup-processable) into a string -- hence int-to-string. (mapcar (lambda (g) (expand-file-name (int-to-string g) (nnheader-group-pathname (gnus-group-real-name gnus-newsgroup-name) "~/Mail/"))) gnus-newsgroup-processable) Does this work? Eval with `:'. Put it into a function call if you like. What do you want to do with it? kai --=20 ~/.signature