From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65905 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.gnus.general Subject: Re: .newsrc.eld should have one newline per group Date: Thu, 06 Dec 2007 19:00:24 -0600 Organization: Still searching... Message-ID: <87fxyfiajb.fsf@newsguy.com> References: <873auktzlo.fsf_-_@jidanni.org> <87k5ntsodd.fsf@grepfind.mwolson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196989276 29841 80.91.229.12 (7 Dec 2007 01:01:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2007 01:01:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14400@lists.math.uh.edu Fri Dec 07 02:01:26 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 1J0Ram-0006Uv-2L for ding-account@gmane.org; Fri, 07 Dec 2007 02:01:24 +0100 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 1J0RaJ-0007Q8-If; Thu, 06 Dec 2007 19:00:55 -0600 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 1J0RaH-0007Pr-Ly for ding@lists.math.uh.edu; Thu, 06 Dec 2007 19:00:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J0RaB-0000d3-T4 for ding@lists.math.uh.edu; Thu, 06 Dec 2007 19:00:53 -0600 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 1J0Ra8-00048q-00 for ; Fri, 07 Dec 2007 02:00:44 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J0Ra2-0003er-TJ for ding@gnus.org; Fri, 07 Dec 2007 01:00:38 +0000 Original-Received: from adsl-75-3-65-96.dsl.chcgil.sbcglobal.net ([75.3.65.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2007 01:00:38 +0000 Original-Received: from reader by adsl-75-3-65-96.dsl.chcgil.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2007 01:00:38 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-75-3-65-96.dsl.chcgil.sbcglobal.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:cjeRpr3hCfcmr1n7xS7df7178Bo= X-Spam-Score: -1.6 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65905 Archived-At: Reiner Steib writes: > On Thu, Dec 06 2007, James Cloos wrote: > >> In retrospect, I suppose one could add a call to the equivilent >> elisp to (gnus-save-newsrc-file) between each call to >> (gnus-gnus-to-quick-newsrc-format) and the ensuing call to >> (save-buffer) to accomplish one-line per group. Have fun with the >> regexp! And read the last paragraph of the docstring for >> (replace-regexp) for the proper idiom to use. > > Here's what I use in `gnus-save-quick-newsrc-hook'. The pretty-print > variant has been discussed here, but IIRC it is quite slow. > > ;;;###autoload > (defun rs-gnus-save-newsrc-with-whitespace-1 () [...] > (defun rs-gnus-save-newsrc-pretty-print () [...] > (add-hook 'gnus-save-quick-newsrc-hook 'rs-gnus-save-newsrc-with-whitespace-1) Is there some kind of way to unwind other elisp records that are keep with no new lines? Something like the agent group list that one can access with `J C' g (When you have agentized groups) I keep quite a few groups in there but change them fairly often. I'd like some way to edit that list by hand since when using the agent tools provided like `J a' you can't tell what is or is not group easily. Something that shows the groups one per line that can be edited and resaved back to the agent record.