From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64814 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Pretty-printing .newsrc.eld Date: Sat, 16 Jun 2007 20:31:54 +0900 Message-ID: References: <20070610173005.GA1276@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181993630 1662 80.91.229.12 (16 Jun 2007 11:33:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 11:33:50 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13325@lists.math.uh.edu Sat Jun 16 13:33:49 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 1HzWXL-0000of-B0 for ding-account@gmane.org; Sat, 16 Jun 2007 13:33:47 +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 1HzWWB-0003hq-1y; Sat, 16 Jun 2007 06:32:35 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HzWW9-0003hb-HL for ding@lists.math.uh.edu; Sat, 16 Jun 2007 06:32:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1HzWW8-0000MX-5p for ding@lists.math.uh.edu; Sat, 16 Jun 2007 06:32:33 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HzWW4-0006W8-00 for ; Sat, 16 Jun 2007 13:32:29 +0200 Original-Received: from [218.118.2.103] (port=64691 helo=) by washington.hostforweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1HzWVa-0000Qn-RW for ding@gnus.org; Sat, 16 Jun 2007 06:31:59 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:xD/FLikHDxiSyK2ezd0SKD/8jTs= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64814 Archived-At: >>>>> In >>>>> Reiner Steib wrote: >>> (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). The reason it was too slow might be that I was displaying the buffer visiting the .newsrc.eld file while trying your function. I cannot verify it since I'm now home and don't have many groups. Sorry. > 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. Please go ahead.