🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #41550

Re: [slrn] kill_subject_this_group macro

#41550
From: Dirk Bernhardt
Date: Wed, 17 Jun 1998 00:00
50 lines
2057 bytes
Thank you for clarifying the difference between prompts that wait for
character and string input.  That helped to understand the problem, which
is the first step in solving it! :)

Your first solution did not work, unfortunateley.  Slrn complains and
prints an error message:

  S-Lang Error: Operation undefined for type.: Unknown Error.

I guessed that the `+' isn't defined for characters and/or strings, so I
changed your example

On 17 Jun 1998 10:11:36 GMT, John E. Davis <davis@space.mit.edu> wrote:
> define kill_subject_this_group ()
> {
>    set_input_chars ("s"		       %  score on subject
> 		    + "t"	       %  this newsgroup
> 		    );	
>    
>    set_input_string("-9999\n"	       % score is -9999
> 		    + "\n"	       %  leave expiration time blank
> 		    );
> 
>    call ("create_score");
> }

to this:

define kill_subject_this_group ()
{
   set_input_chars ("st");         %  score on subject, this group
   set_input_string("-9999\n\n");  %  score is -9999, blank exp.time
   call ("create_score");
}

which works for me now.

>     set_input ("s-9999\rt\r");

This would be an obvious and elegant thing to have.  One could think of
pushing these characters on the keyboard stack.

Thanks again, for slrn and your advice!

Krid
--
PS: Feel free to correct my English, I'm always willing to learn.

Technical Details
Message-ID: <6m8fkf$sv$1@umrk.comnets.rwth-aachen.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6m6o1m$24a$1@umrk.comnets.rwth-aachen.de> <slrn6oeg76.i4h.davis@mygir.davis.net>

Show Full Headers
Complete Article Headers
Message-ID: <6m8fkf$sv$1@umrk.comnets.rwth-aachen.de>
Subject: Re: [slrn] kill_subject_this_group macro
Date: Wed, 17 Jun 1998 00:00:00 +0000
From: krid+usenet+@comnets.rwth-aachen.de (Dirk Bernhardt)
References: <6m6o1m$24a$1@umrk.comnets.rwth-aachen.de> <slrn6oeg76.i4h.davis@mygir.davis.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 363508402
X-Server-Date: 17 Jun 1998 13:17:03 GMT
Organization: Utility Muffin Research Kitchen
Newsgroups: news.software.readers