🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34819

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

#34819
From: Hubert Canon
Date: Thu, 03 Jul 1997 00:00
48 lines
2390 bytes
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 ?

> > and I put the macro in .slrn.sl

exactly what was given :
define delete_thread ()
{
   collapse_thread ();
   call ("delete");
}
definekey ("delete_thread", "D", "article");

> Did you bind the macro to the keys you want to use?  You didn't mention
> whether you did or not.  If you did all these things and you still get an
> error, what was the error, exactly?

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

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

> > 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");
}

-- 
Hubert Canon

Technical Details
Message-ID: <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
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5rnfh6.vo.Hubert.Canon@hetre.irisa.fr>
Subject: Re: [SLRN] delete_thread (was Re: slrn questions)
Date: Thu, 03 Jul 1997 00:00:00 +0000
From: Hubert.Canon@irisa.fr (Hubert Canon)
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>
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: 254293747
Distribution: world
Mail-Copies-To: never
X-Courtesy-Copy: no
Organization: Irisa, Rennes (FR)
Reply-To: Hubert.Canon@irisa.fr
Newsgroups: news.software.readers