From: Daniel Pittman <daniel@rimspace.net>
To: ding@gnus.org
Subject: Re: .newsrc.eld should have one newline per group
Date: Thu, 06 Dec 2007 19:35:14 +1100 [thread overview]
Message-ID: <877ijsdxvh.fsf@enki.rimspace.net> (raw)
In-Reply-To: <m3hciw7msv.fsf@lugabout.jhcloos.org>
James Cloos <cloos+math_uh-ding@jhcloos.com> writes:
>>>>>> "Jidanni" == <jidanni@jidanni.org> writes:
>>>>>> "Michael" == Michael Olson <mwolson@member.fsf.org> writes:
>
> Jidanni> we instead maintain .newsrc.eld with one newline per newsgroup,
> Jidanni> yes lisp indented, but minimally.
>
> Michael> I fully agree. I recently had to selectively restore items
> Michael> from a backed-up .newsrc.eld file, and Emacs took a long time
> Michael> to move around in that file.
>
> I'd like to see that as well, but it isn't the easiest change to make.
>
> The current code uses (symbol-value) to get the value of each variable
> when writing out the (setq) lines into the buffer which gets written out
> to the ~/.nesrc.eld file.
>
> Emacs-lisp-mode has a (lisp-fill-paragraph) function, but that is more
> about filling comment blocks correctly; new code will be required which
> calls (fill-paragraph) will useful values for paragraph-start, et al
> and then runs (indent-sexp).
[...]
> The other alternative is to loop through gnus-newsrc-alist one value at
> a time, storing it in a temp variable and calling (symbol-value) on each
> of those.
Actually, another option exists, which is to use the `pp' function and
friends to generate the formatted output. This already takes care of
the formatting, ships in core Emacs and XEmacs, and is reasonable
efficient.
Regards,
Daniel
--
Daniel Pittman <daniel@cybersource.com.au> Phone: 03 9621 2377
Level 4, 10 Queen St, Melbourne Web: http://www.cyber.com.au
Cybersource: Australia's Leading Linux and Open Source Solutions Company
next prev parent reply other threads:[~2007-12-06 8:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-30 0:58 how to delete groups despite backend jidanni
2007-11-30 1:22 ` Dave Goldberg
2007-11-30 1:32 ` Katsumi Yamaoka
2007-12-03 0:02 ` .newsrc.eld should have one newline per group jidanni
2007-12-03 23:55 ` jidanni
2007-12-04 1:27 ` jidanni
2007-12-05 5:26 ` Michael Olson
2007-12-05 23:18 ` James Cloos
2007-12-06 7:35 ` Reiner Steib
2007-12-07 1:00 ` reader
2007-12-06 8:35 ` Daniel Pittman [this message]
2007-12-06 12:43 ` jidanni
2007-12-03 0:11 ` how to delete groups despite backend jidanni
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=877ijsdxvh.fsf@enki.rimspace.net \
--to=daniel@rimspace.net \
--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).