🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #1832

Re: macro for kill-subject?

#1832
From: Gerben 'P' Vos
Date: Mon, 08 Jul 1991 02:46
35 lines
1811 bytes
daniel@island.COM (Daniel Smith - Ministry of Silly Walks) writes:

>	I'd like to write a macro to do the following:

>	when invoked, it will prompt me for a letter, once I type that
>in, that Subject gets killed.  I don't want to have to always go through
>the entire kill-select dialog (I want the macro to do that).

I use the following macros:

--- from my init file
# ^K kills, K selects (see default-kill-select)

map menu ^K (
kill-select 'k' 's' "%" input 'g' "30"
)

map show ^K (
kill-select 'k' 's' "%" 'g' "30"
)
---

Note the "input" in the first macro. There is one problem with this macro
(and probably other macros), namely if you enter ^G in an attempt to abort
the macro, the macro doesn't get aborted, but instead article 'g' becomes
selected and you get an error message since nn barfs on the "30".

You may also want to look at the variable default-kill-select. I have set
it such that it defaults to selecting articles for 30 days, instead of
killing. So i can both do select and kill with little keystrokes.

. . . . . . . . . . . . . . . . . . . . . . . . . . . G e r b e n   V o s   <><
Aconet: BIGBEN!Gerben Vos  Internet: gpvos@cs.vu.nl
NASA's primary motivation in space exploration is the hope of finding a planet
with a 25 hour day.
Technical Details
Message-ID: <10392@star.cs.vu.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!hp4nl!star.cs.vu.nl!gpvos
References: <4265@island.COM>

Show Full Headers
Complete Article Headers
Message-ID: <10392@star.cs.vu.nl>
Subject: Re: macro for kill-subject?
Date: Mon, 08 Jul 1991 02:46:05 +0000
From: gpvos@cs.vu.nl (Gerben 'P' Vos)
References: <4265@island.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!hp4nl!star.cs.vu.nl!gpvos
Newsgroups: news.software.nn
Sender: news@cs.vu.nl
Lines: 35