Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding@gnus.org
Subject: Re: Mechaincal question Show filename of # marked
Date: 21 Dec 2000 16:42:14 +0100	[thread overview]
Message-ID: <vafzohp3hnt.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <m2puima2wz.fsf@gnus-5.8.8-cvs.now.playing>

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) 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
-- 
~/.signature



  parent reply	other threads:[~2000-12-21 15:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-21  3:06 Harry Putnam
2000-12-21 10:02 ` Kai Großjohann
2000-12-21 14:28   ` Harry Putnam
2000-12-21 15:42 ` Kai Großjohann [this message]
2000-12-21 15:55   ` Harry Putnam
2000-12-22  3:15     ` Colin Walters
2000-12-22  5:10       ` Harry Putnam
2000-12-22  6:05         ` Colin Walters
2000-12-22  8:44         ` Kai Großjohann
2000-12-22  8:40     ` Kai Großjohann

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=vafzohp3hnt.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=ding@gnus.org \
    /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).