From: Mark Moll <mmoll@cs.cmu.edu>
Cc: mmoll+@cs.cmu.edu
Subject: function to pack folders
Date: 02 Feb 1998 13:22:53 -0500 [thread overview]
Message-ID: <uttbtwprhmq.fsf@gs236.sp.cs.cmu.edu> (raw)
I wrote this little function to renumber articles in my nnml folders. I
don't know that much about elisp, but this seemed a reasonable way to do it.
For some reason, however, I get the following error when I call the function
below in the summary buffer.
Symbol's value as variable is void: group
It's probably something very trivial, but can anybody tell me what I'm
doing wrong?
(defun mm-pack-folder ()
"Renumber the articles such that holes in the numbering are removed."
(interactive)
(let ((group gnus-newsgroup-name)
(folder (replace-in-string
(replace-in-string group
"\\(nnml\\+archive:\\)\\(.*\\)"
"archive/\\2")
"\\(nnml:\\)\\(.*\\)" "\\2"))
(dir (concat message-directory folder)))
(call-process "gunzip" nil nil nil (concat dir "/*.gz"))
(call-process "folder" nil nil nil (concat "+" folder) "-pack")
(nnml-generate-nov-databases-1 (concat dir))
(call-process "gzip" nil nil nil (concat dir "/*"))
(gnus-summary-reselect-current-group)))
--
Mark Moll
next reply other threads:[~1998-02-02 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-02 18:22 Mark Moll [this message]
1998-02-02 20:00 ` Colin Rafferty
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=uttbtwprhmq.fsf@gs236.sp.cs.cmu.edu \
--to=mmoll@cs.cmu.edu \
--cc=mmoll+@cs.cmu.edu \
/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).