🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #147254

Re: [slrn] macro help please

#147254
From: Lars Stokholm
Date: Thu, 29 Apr 2004 06:04
20 lines
1546 bytes
Mike Vanecek wrote:

> Ditto for confirm_actions since all I really want to do is decrease
> it by 1 and then restore it. Any shortcuts on doing that??

Well, this is what I've got:
#v+
define quick_read()
{
  variable old_ca,new_ca;

  old_ca = get_variable_value("confirm_actions");
  new_ca = old_ca;
  if (old_ca mod 2 != 0) new_ca--;
  set_integer_variable("confirm_actions",new_ca);
  call("catchup_all");
  set_integer_variable("confirm_actions",old_ca);
  call("skip_to_next_group");
}
#v-
Technical Details
Message-ID: <slrnc916nv.1ao.lars@stokholm.dyndns.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!0x3ef31032.virnxx2.adsl.tele.DK!not-for-mail
References: <rc32m1-4mc.ln1@news.invalid.99computer> <slrnc8t01h.6s8.jbn@forestfield.org> <mq06m1-s4q.ln1@news.invalid.99computer>

Show Full Headers
Complete Article Headers
Message-ID: <slrnc916nv.1ao.lars@stokholm.dyndns.dk>
Subject: Re: [slrn] macro help please
Date: Thu, 29 Apr 2004 08:04:47 +0200
From: Lars Stokholm <stokholm@despammed.com>
References: <rc32m1-4mc.ln1@news.invalid.99computer> <slrnc8t01h.6s8.jbn@forestfield.org> <mq06m1-s4q.ln1@news.invalid.99computer>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!0x3ef31032.virnxx2.adsl.tele.DK!not-for-mail
Newsgroups: news.software.readers
Lines: 20
NNTP-Posting-Host: 0x3ef31032.virnxx2.adsl.tele.dk (62.243.16.50)
X-Trace: news.uni-berlin.de 1083218695 15669063 I 62.243.16.50 ([136857])
X-Uptime: 2 Days, 8 Hours, 5 Minutes, 7 Seconds
User-Agent: slrn/0.9.8.0 (Win32)