* Re: would it hurt to put more newlines in .newsrc.eld?
[not found] <87fzk76f6g.fsf@jidanni.org>
@ 2003-08-12 20:18 ` Reiner Steib
2003-08-12 22:26 ` Dan Jacobson
0 siblings, 1 reply; 2+ messages in thread
From: Reiner Steib @ 2003-08-12 20:18 UTC (permalink / raw)
Cc: ding, Dan Jacobson
On Mon, Aug 11 2003, Dan Jacobson wrote:
> Would it hurt to put more newlines in .newsrc.eld?
Try to convince the people on ding that adding newlines makes
sense. :-)
> Lines too long might break some editors :-|
> Also I want to look at it.
I'd agree with you that it's terrible to edit without newline. But
it's not supposed to be read or edited by humans.
Here's a workaround:
--8<---------------cut here---------------start------------->8---
;;;###autoload
(defun rs-gnus-save-newsrc-with-whitespace ()
"Save ~/.newsrc.eld with extra whitespace."
;; Modified version of <oq1ykgajdm.fsf@carouge.sram.qc.ca>
(gnus-message 5 "Adding whitespace to .newsrc.eld")
(save-excursion
(goto-char (point-min))
(while (re-search-forward "(\\\"\\| ((\\| (nn" nil t)
(replace-match "\n \\&" t))
(goto-char (point-min))))
(add-hook 'gnus-save-quick-newsrc-hook 'rs-gnus-save-newsrc-with-whitespace)
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-12 22:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87fzk76f6g.fsf@jidanni.org>
2003-08-12 20:18 ` would it hurt to put more newlines in .newsrc.eld? Reiner Steib
2003-08-12 22:26 ` Dan Jacobson
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).