Article View: news.software.readers
Article #34846Re: [SLRN] delete_thread (was Re: slrn questions)
From: Jan Hlavacek
Date: Fri, 04 Jul 1997 00:00
Date: Fri, 04 Jul 1997 00:00
36 lines
2050 bytes
2050 bytes
On 4 Jul 97 06:12:46 GMT, J.B. Nicholson-Owens
<jbn@pop-a-wheelie.midwest.net> wrote:
>Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>> Does this work ?
>> define reload_macros () {
>> evalfile(".slrn.sl");
>> }
>
>Close, you probably want to change that evalfile() to
>
> () = evalfile (strcat (getenv ("HOME"), "/.slrn.sl"));
>
>The differences being:
>* "() = " means throw away the returned value.
>* strcat (...) gets your homedir from the HOME env. var. and appends
> "/.slrn.sl" forming a path from the root dir then passes that to
> evalfile.
>
You are right with the strcat (...), but the () = part causes slrn to
complain about stack underflow. It seems that slrn overrides the slang
evalfile function, so that it doesn't return a value.
Also, it would be nice if slrn have the same expand_filename capabilities
as JED does.
lahvak
--
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:
<slrn5rq6af.2v3.lahvak+n@mw152sb.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-mailReferences:
<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> <slrn5rp4v9.5fh.jbn@pop-a-wheelie.midwest.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn5rq6af.2v3.lahvak+n@mw152sb.mps.ohio-state.edu> Subject: Re: [SLRN] delete_thread (was Re: slrn questions) Date: Fri, 04 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> <slrn5rp4v9.5fh.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: 254558994 Organization: Department of Mathematics, The Ohio State University Reply-To: lahvak+n@math.ohio-state.edu Newsgroups: news.software.readers