Article View: news.software.readers
Article #38373Re: Q: error with slrn0.9.4.5 with a macro
From: Jan Hlavacek
Date: Fri, 30 Jan 1998 00:00
Date: Fri, 30 Jan 1998 00:00
57 lines
2916 bytes
2916 bytes
On 29 Jan 1998 21:21:16 GMT, RenοΏ½ Scholz <mrz@isun04.inf.uni-jena.de>
wrote:
>
> hi,
>
> I just compiled the new slrn0.9.4.5 under Solaris.
> It works, but I have a Problem with a script from the usenet I use to select
> the filename for saveing files.
>
> The error I get is:
>
> S-Lang Error: Stack Underflow: Error while executing my_save
>
> (but not for _all_ groups!).
>
>
> The last version I used recently was 0.9.3.2.
> Here's the source, what should I change: ?
>
OK, I think I recognize this source :-)
There may be few more thing which should be changed, but your problem
seems to be caused by the `pop()' statement et the end of the switch:
> define get_file_for_group (group)
> {
> % Assign a name of an output folder based on the group name.
> % I don't like to have all those really long file names.
> % If the group isn't on the list, leave it the way it is.
>
> switch (group)
> {case "de.comp.text.tex" : "tex10.txt"; }
> {case "de.comp.os.linux.misc" : "lin37.txt"; }
> {case "comp.emacs.xemacs" : "xemacs2.txt"; }
> {case "gnu.emacs.vm.info" : "xemacs2.txt"; }
> {case "de.comp.os.unix" : "unix2.txt"; }
> {case "de.rec.tv.simpsons" : "simpsons.txt"; }
> {case "comp.compression" : "Wavelets.txt"; }
> {case "de.sci.mathematik" : "math.txt"; }
> {case "de.rec.music.misc" : "musik1.txt"; }
> {case "news.software.readers" : "slrn1.txt"; }
> {case "de.comm.infosystems.www.authoring" : "html1.txt"; }
> {pop (); group; }
^^^^^^^
You want to remove this pop(); Thy syntax of switch statement changed
in the new version os slang.
lahvak
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Technical Details
Message-ID:
<slrn6d2u2n.nsm.lahvak@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-mailReferences:
<6aqrsc$r66$1@fsuj19.rz.uni-jena.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn6d2u2n.nsm.lahvak@math.mps.ohio-state.edu> Subject: Re: Q: error with slrn0.9.4.5 with a macro Date: Fri, 30 Jan 1998 00:00:00 +0000 From: lahvak@math.mps.ohio-state.edu (Jan Hlavacek) References: <6aqrsc$r66$1@fsuj19.rz.uni-jena.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 X-Deja-AN: 320493363 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Reply-To: lahvak@math.mps.ohio-state.edu Content-Type: text/plain; charset=iso-8859-1 Organization: Department of Mathematics, The Ohio State University Newsgroups: news.software.readers