🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #2297

Re: emacs/gnews kill help needed

#2297
From: Gregory Nowak
Date: Wed, 30 Sep 1992 11:11
49 lines
3226 bytes
Note: followups redirected to gnu.emacs.gnews. It's certainly
appropriate, and need not be crossposted.

In article <1992Sep29.223513.23891@pony.Ingres.COM>, daveb@Ingres (Dave Brower, DBMS hack, [510] 748-3418) writes:
}I'd appreciate some simple examples of how to use the hook-kill
}processing in Weiner's gnews.  The examples in the document are very
}commplex, and do not directly address the simple question I have:
}
}(1) what is the exact equivalent of an "rn" kill file line:
}
}	/stuff/j
}
}Has anyone got pre-written functions that would match the "rn"
}functions of the "j" or "k" keys (junk this subject for the
}session, and permanently kill it).

Yes -- Gnews does! Say, for example, that you want to permanently kill
the subject of the article you're reading. First hit ESC K.

You get two windows, the top one being the regular Gnews window and
the bottom one in which you can edit the hook-kills for that
newsgroup..

Now type C-C C-L.  This tells Gnews you want to enter an
"article-junk-local" hook, and it will then proffer "Subject" as the
header you're interested in. Since in this case that's what you want,
just hit RET, and then C-C C-C which saves the hook-kill, and gives
you back the one-window Gnews buffer. A few more keystrokes than "K"
in rn when you want to kill a subject, but a lot more flexible. If you
want  to kill by poster name  or crossposted newsgroup, just delete
"Subject" when it's proffered, and replace it with the appropriate
header tag. NOTE: You do NOT have to type in the contents of the
header line! Gnews does that for you. Before you save with C-C C-C,
you get to see the new hook-kill; after you've done a few of these, I
bet you'll get the idea and start coming up with your own techniques. 

The hook-kill buffer is editable, so you can always edit it to
un-kill a subject or name. 

For advanced users: at the group selection level, , ESC K first allows
you to do regexp matching on group names ( "." matches all groups), so
you can do hook-kills for a class of newsgroups, for example, killing
all posts from a certain user in the "sci" groups, but leaving his
posts to rec.arts.star-trek alone. 

Good luck, and thanks again, Matthew!

--greg
Technical Details
Message-ID: <1992Sep30.111108.3540@Princeton.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.emacs.mbox.zip!sparky!uunet!ogicse!uwm.edu!linac!att!princeton!phoenix.Princeton.EDU!greg
References: <1992Sep29.223513.23891@pony.Ingres.COM>

Show Full Headers
Complete Article Headers
Message-ID: <1992Sep30.111108.3540@Princeton.EDU>
Subject: Re: emacs/gnews kill help needed
Date: Wed, 30 Sep 1992 11:11:08 +0000
From: greg@phoenix (Gregory Nowak)
References: <1992Sep29.223513.23891@pony.Ingres.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.emacs.mbox.zip!sparky!uunet!ogicse!uwm.edu!linac!att!princeton!phoenix.Princeton.EDU!greg
Newsgroups: comp.emacs,gnu.emacs.gnews,news.software.readers
Article-I.D.: Princeto.1992Sep30.111108.3540
Sender: news@Princeton.EDU (USENET News System)
Reply-To: greg@phoenix (Gregory Nowak)
Followup-To: gnu.emacs.gnews
Organization: Baguette Research Systems Inc.
Lines: 48
In-Reply-To: daveb@Ingres.COM (Dave Brower, DBMS hack, [510] 748-3418)
Originator: news@nimaster
Nntp-Posting-Host: phoenix.princeton.edu