From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34997 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Losing G p (group params) Date: 26 Feb 2001 08:27:53 -0800 Organization: mobile Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170814 658 80.91.224.250 (21 Oct 2002 03:26:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:26:54 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 44420D049D for ; Mon, 26 Feb 2001 11:28:39 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB13745; Mon, 26 Feb 2001 10:28:33 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 26 Feb 2001 10:27:51 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA04347 for ; Mon, 26 Feb 2001 10:27:38 -0600 (CST) Original-Received: from mail.networkone.net (mail.networkone.net [209.144.112.246]) by mailhost.sclp.com (Postfix) with SMTP id 58BE2D049F for ; Mon, 26 Feb 2001 11:28:06 -0500 (EST) Original-Received: (qmail 3215 invoked from network); 26 Feb 2001 16:28:00 -0000 Original-Received: from unknown (HELO reader.local.lan) (209.144.117.151) by mail.networkone.net with SMTP; 26 Feb 2001 16:28:00 -0000 Original-Received: (from reader@localhost) by reader.local.lan (8.11.0/8.11.0) id f1QGRrj18558; Mon, 26 Feb 2001 08:27:53 -0800 X-Authentication-Warning: reader.local.lan: reader set sender to reader@newsguy.com using -f Original-To: ding@gnus.org Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Posted-To: gnu.emacs.gnus Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 65 Xref: main.gmane.org gmane.emacs.gnus.general:34997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34997 The following message is a courtesy copy of an article that has been posted to gnu.emacs.gnus as well. [ Message posted to gnu.emacs.gnus and ding list ] It has happened to me on several occasions where I inadvertantly either kill a group or groups and there by loose the group param settings. I do keep backups of .newsrc.eld but often don't notice the problem until quite a lot of new material has been written to .newsrc.eld, making bodily overwrite with backup a non starter. Meaning only the tedious hand route will restore things. Especially painful if you have to resort to `G c' (group customize) to remind you how some things are written. This information is neatly presented in `G p' buffers for editing, so I wondered if the code that does that, could be made to loop thru all groups and print out a file with the group params info listed like in `G p' buffers, but with a few additions like: GROUPNAME existing `G p' code ... existing `G p' code ... existing `G p' code ... [...] -- GROUPNAME existing `G p' code ... existing `G p' code ... existing `G p' code ... [...] -- [...] and onward And have this handy list written to a file. I'm thinking of a batch command running this daily or as often as seems necessary, and keeping some number of these generated files on hand. Sections could just be yanked into a `G p' buffer to re-establish settings in the event of a problem. So, I guess my question is first would such a looping construct, using existing code and editing, be a major undertaking? Or is this something a lisp impaired hacker could concoct with a little help? And secondly, if this would be a good addition to gnus armaments. Something along the lines of `nnml-generate-nov-data-bases' (`gnus-generate-group-parameters-list') could then be batched easily by anyone who is as careless as me. Maybe a similar function (`gnus-generate--group-edit-list'), for `G E' information.