From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64813 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Pretty-printing .newsrc.eld Date: Fri, 15 Jun 2007 19:32:46 +0200 Message-ID: References: <20070610173005.GA1276@kobe.laptop> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181931203 10359 80.91.229.12 (15 Jun 2007 18:13:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2007 18:13:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13324@lists.math.uh.edu Fri Jun 15 20:13:22 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzGIQ-0002ux-PK for ding-account@gmane.org; Fri, 15 Jun 2007 20:13:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1HzGIG-0007WR-Pd; Fri, 15 Jun 2007 13:13:08 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HzGIF-0007WC-2E for ding@lists.math.uh.edu; Fri, 15 Jun 2007 13:13:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1HzGID-0005PY-Vi for ding@lists.math.uh.edu; Fri, 15 Jun 2007 13:13:06 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HzGID-0000QX-00 for ; Fri, 15 Jun 2007 20:13:05 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HzGAH-0003bl-KY for ding@gnus.org; Fri, 15 Jun 2007 20:04:53 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jun 2007 20:04:53 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jun 2007 20:04:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64813 Archived-At: 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/