From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52776 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Modification to newsrc saving, please check! Date: Tue, 20 May 2003 13:37:39 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4niss5ecyk.fsf@lockgroove.bwh.harvard.edu> References: <4nptn4ar4w.fsf@lockgroove.bwh.harvard.edu> <4nbrydb7is.fsf_-_@lockgroove.bwh.harvard.edu> <84bry0fwn6.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053452540 2706 80.91.224.249 (20 May 2003 17:42:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 May 2003 17:42:20 +0000 (UTC) Original-X-From: ding-owner+M1320@lists.math.uh.edu Tue May 20 19:42:18 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IB1x-0000CR-00 for ; Tue, 20 May 2003 19:36:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19IB3c-0007dJ-00; Tue, 20 May 2003 12:37:48 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19IB3X-0007dE-00 for ding@lists.math.uh.edu; Tue, 20 May 2003 12:37:43 -0500 Original-Received: (qmail 32429 invoked by alias); 20 May 2003 17:37:41 -0000 Original-Received: (qmail 32424 invoked from network); 20 May 2003 17:37:41 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by sclp3.sclp.com with SMTP; 20 May 2003 17:37:41 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h4KHbdI20285 for ; Tue, 20 May 2003 13:37:39 -0400 (EDT) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h4KHbdk26838; Tue, 20 May 2003 13:37:39 -0400 (EDT) Original-To: ding@gnus.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: ding@gnus.org In-Reply-To: <84bry0fwn6.fsf@lucy.is.informatik.uni-duisburg.de> ( =?iso-8859-1?q?Kai_Gro=DFjohann's_message_of?= "Sun, 18 May 2003 11:10:21 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52776 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52776 On Sun, 18 May 2003, kai.grossjohann@gmx.net wrote: > Ted Zlatanov writes: > >> It would be nice if the gnus-save-newsrc-file function was more >> modular, so I could save the registry cache through it instead of >> essentially copying it into gnus-registry-cache-save. The idea of >> saving variables to a file in a way that would let us just (load) >> that file is very convenient. We should facilitate it as much as >> possible for other areas of Gnus. > > Sounds like a plan. So how about making it more modular? Obvious > parameters that I see is the way that the contents of the > buffer/file are generated, and also filename and coding and > suchlike. I'll think about it, maybe an association table of symbols with file names and nil means the regular place. Specifically for the registry, however, I may have to change the format yet again. Saving the whole registry with every update is pretty inefficient. I'm thinking of your format for the nnmail cache, with the extra data stored as a Lisp expression at the end of the line. Something like: Message-ID group1 group2 group3 '((creation-time 10000000)) It's much faster to use this, but of course more work is needed to work around the limitations of the format. Argh. If only Emacs had a built-in file database. Ted