From: pinard@iro.umontreal.ca (François Pinard)
Cc: ding@gnus.org
Subject: Re: Better .newsrc.eld formating
Date: 06 Oct 2001 11:16:53 -0400 [thread overview]
Message-ID: <oq1ykgajdm.fsf@carouge.sram.qc.ca> (raw)
In-Reply-To: <87669s3ggn.fsf@marant.org>
[Jérôme Marant]
> I'd like to know if it could be possible to improve the formatting
> of .newsrc.eld. It is made of few but very long lines and it is very
> difficult to check. I also feel sometimes frustrated, for that
> reason, not being able to edit it by hand, for example in order to
> add myself Group parameters.
A while ago, someone submitted a piece of Emacs LISP code for this, which
I use since then (maybe modified a bit locally).
;; Idée de Dan Christensen <jdc@chow.mat.jhu.edu>
;; Save the .newsrc.eld file with extra line breaks.
(defun fp-gnus-save-quick-newsrc-routine ()
(gnus-message 4 "Adding whitespace to .newsrc.eld")
(save-excursion
(goto-char (point-min))
(while (re-search-forward "^(\\|(\\\"" nil t)
(replace-match "\n\\&" t))
(goto-char (point-min))
(while (re-search-forward " $" nil t)
(replace-match "" t t))))
(add-hook 'gnus-save-quick-newsrc-hook 'fp-gnus-save-quick-newsrc-routine)
--
François Pinard http://www.iro.umontreal.ca/~pinard
next prev parent reply other threads:[~2001-10-06 15:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-06 16:01 Jérôme Marant
2001-10-06 15:16 ` François Pinard [this message]
2001-10-06 19:25 ` Kai Großjohann
2001-10-06 21:40 ` François Pinard
2001-10-06 22:47 ` Jérôme Marant
2001-10-07 9:51 ` Kai Großjohann
2001-10-07 12:27 ` Jérôme Marant
2001-10-07 5:01 ` Randal L. Schwartz
2001-10-06 22:46 ` Jérôme Marant
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=oq1ykgajdm.fsf@carouge.sram.qc.ca \
--to=pinard@iro.umontreal.ca \
--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).