🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #186780

Re: [slrn] can't use require("gslrand") in a slrn macro file?

#186780
From: John E. Davis
Date: Tue, 20 Jun 2006 19:06
28 lines
1797 bytes
On Tue, 20 Jun 2006 16:22:28 +0100, Adam Funk <a24061@yahoo.com>
wrote:
>~/.slrnrc has the line
>
>  interpret(".slrn/custom.sl");
>
>and that file contains the line
>
>  require ("gslrand");
>
>which fails with this error when I launch slrn:
>
>  loading /home/adam/.slrn/custom.sl
>  require is undefined
>  /home/adam/.slrn/custom.sl:3:<top-level>:Undefined Name

The file require.sl is distributed with slang and is installed as part
of slsh.  I suggest that you put

   autoload ("require", "/path/to/require.sl");

in your custom.sl.  If you are using slang-2, and it was compiled with
the correct setting of _slang_install_prefix, you should be able to use:

   autoload ("require", "$_slang_install_prefix/share/slsh/require.sl"$);

Good luck,
--John
Technical Details
Message-ID: <slrne9ghpk.2us.davis@aluche.mit.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
References: <keglm3-ug1.ln1@news.ducksburg.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrne9ghpk.2us.davis@aluche.mit.edu>
Subject: Re: [slrn] can't use require("gslrand") in a slrn macro file?
Date: Tue, 20 Jun 2006 19:06:30 +0000
From: davis@space.mit.edu (John E. Davis)
References: <keglm3-ug1.ln1@news.ducksburg.com>
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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
Newsgroups: news.software.readers
Organization: Center for Space Research
Reply-To: davis@space.mit.edu
Fcc: =sent.gz
User-Agent: slrn/0.9.6.4 (Linux)
Lines: 28
NNTP-Posting-Host: ALUCHE.MIT.EDU
X-Trace: 1150830390 senator-bedfellow.mit.edu 577 18.75.2.45