From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: Pretty-printing .newsrc.eld
Date: Fri, 15 Jun 2007 19:32:46 +0200 [thread overview]
Message-ID: <v9r6od6s3l.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <b4mwsy5g0ue.fsf@jpl.org>
On Fri, Jun 15 2007, Katsumi Yamaoka wrote:
>>>>>> Reiner Steib wrote:
>> I have the following poor man's pretty print in this hook:
>
>> (defun rs-gnus-save-newsrc-with-whitespace-1 ()
>> "Save ~/.newsrc.eld with extra whitespace."
>
> This took 6 seconds while the rich man's version took 18 seconds
> (in the condition where: (length gnus-newsrc-alist) => 1552).
Hm. For me it writes the file in less than a second (with a length of
650).
> It seems useful for a few people including me. ;-) Though it
> might be sufficient to such people to do that by a hook:
[...]
> (while (search-forward "\n(setq " nil t)
> (replace-match "\n\n(setq "))))
>
> It took 0.012 seconds.
I'd guess that...
- (princ "(setq ")
+ (princ "\n(setq ")
... doesn't add any noticeable delay and nobody will be disturbed by the
extra newline. So I will commit it.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2007-06-15 17:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-10 17:30 Giorgos Keramidas
2007-06-14 7:27 ` Katsumi Yamaoka
2007-06-14 19:24 ` Reiner Steib
2007-06-15 6:59 ` Katsumi Yamaoka
2007-06-15 17:32 ` Reiner Steib [this message]
2007-06-16 11:31 ` Katsumi Yamaoka
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=v9r6od6s3l.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.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).