🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34837

Re: [SLRN] delete_thread (was Re: slrn questions)

#34837
From: Jan Hlavacek
Date: Thu, 03 Jul 1997 00:00
64 lines
2957 bytes
On 3 Jul 1997 14:58:46 GMT, Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>J.B. Nicholson-Owens ecrivait :
>> Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>> > I have this at the end of my .slrnrc :
>> > interpret ".slrn.sl"
>> 
>> ...is .slrn.sl in your homedir?  If not, you need to give the path as an
>> offset to your homedir or, as you said, an absolute path leading to the
>> file.
>
>Yes it is. Does "$HOME/.slrn.sl" or "~/.slrn/sl" do the trick ?

Now,  as long as it is in your $HOME,   you don't need to give the path.  At
least if you didn't set macro_directory to something else.  

>
>> > and I put the macro in .slrn.sl
>
>exactly what was given :
>define delete_thread ()
>{
>   collapse_thread ();
>   call ("delete");
>}
>definekey ("delete_thread", "D", "article");

It works for me.

>There is no error : the key doesn't do what it should do.

What dos it do?  Does it just delete one article?

>
>One more question : are "d" and "D" different or is it the same key ?

They are different.  "d" by default just deletes one article.  "D" with the
above function deletes whole subthread.

>
>> > Another question :
>> > Is there a way to reload .slrnrc or .slrn.sl without quitting slrn ?
>> 
>> Yes, you can make a macro to eval() a string (I think JED included one with
>> slrn) and use that to type in S-Lang code to set things as you go, including
>> evalfile() some S-Lang code file.  I don't know of a way to reload one's
>> slrnrc after slrn has been started, the best suggestion I can offer is a
>> bunch of set_[integer|string]_variable() calls.
>
>Does this work ?
>define reload_macros () {
>  evalfile(".slrn.sl");
>}

Exactly.  By the way,  John,  if you are reading this,  does slrn overrides
the slang evalfile function?  It doesn't seem to return a value.

-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Technical Details
Message-ID: <slrn5rnhg7.36l.lahvak+n@math.mps.ohio-state.edu>
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: <slrn5rcll8.97.gottfriedsw@lowrider.quantum.de> <slrn5rebpj.86.jbn@pop-a-wheelie.midwest.net> <slrn5reoas.kpb.lahvak+n@math.mps.ohio-state.edu> <slrn5rg7kc.9h1.gottfriedsw@lowrider.quantum.de> <slrn5rn8ur.vo.Hubert.Canon@hetre.irisa.fr> <slrn5rne07.52c.jbn@pop-a-wheelie.midwest.net> <slrn5rnfh6.vo.Hubert.Canon@hetre.irisa.fr>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5rnhg7.36l.lahvak+n@math.mps.ohio-state.edu>
Subject: Re: [SLRN] delete_thread (was Re: slrn questions)
Date: Thu, 03 Jul 1997 00:00:00 +0000
From: lahvak+n@math.ohio-state.edu (Jan Hlavacek)
References: <slrn5rcll8.97.gottfriedsw@lowrider.quantum.de> <slrn5rebpj.86.jbn@pop-a-wheelie.midwest.net> <slrn5reoas.kpb.lahvak+n@math.mps.ohio-state.edu> <slrn5rg7kc.9h1.gottfriedsw@lowrider.quantum.de> <slrn5rn8ur.vo.Hubert.Canon@hetre.irisa.fr> <slrn5rne07.52c.jbn@pop-a-wheelie.midwest.net> <slrn5rnfh6.vo.Hubert.Canon@hetre.irisa.fr>
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: 254305212
Organization: Department of Mathematics, The Ohio State University
Reply-To: lahvak+n@math.ohio-state.edu
Newsgroups: news.software.readers