Article View: news.software.readers
Article #34938Re: [SLRN] delete_thread (was Re: slrn questions)
From: Jan Hlavacek
Date: Tue, 08 Jul 1997 00:00
Date: Tue, 08 Jul 1997 00:00
45 lines
2469 bytes
2469 bytes
On 8 Jul 1997 13:54:37 GMT, Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>Hubert Canon ecrivait :
>> > >define delete_thread ()
>> > >{
>> > > collapse_thread ();
>> > > call ("delete");
>> > >}
>> > >definekey ("delete_thread", "D", "article");
>
>I updated to slrn0.9.4.2 and it doesn't work either. I tried the
>"execute_slang" to see what is going on :
>When I try the "D" key, it doen't work (it deletes only the subthread
>and doesn't collapse anything)
>When I try `delete_thread ()', it works (it collapses the entire thread
>and deletes it)
>When I try `call ("delete_thread")', it does the same as the "D" key.
>
>Did I miss something ?
>
OK, this may be the problem. Try to use different name for the function,
i.e. do something like
define thread_delete ()
{
collapse_thread ();
call ("delete");
}
definekey ("thread_delete", "D", "article");
What happens is that slrn gives priority to internal functions when mapping
keys, so in the mapping I suggested, slrn was calling internal function
delete_thread which deletes subthread, and which is by default mapped to \eD.
I had a misspelling in my .slrn.sl, so it worked for me. :-)
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:
<slrn5s4kcs.62t.lahvak+n@mw152sa.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> <slrn5rnhg7.36l.lahvak+n@math.mps.ohio-state.edu> <slrn5rnijb.12u.Hubert.Canon@hetre.irisa.fr> <slrn5s4hks.1bq.Hubert.Canon@guenievre.irisa.fr>Show Full Headers
Complete Article Headers
Message-ID: <slrn5s4kcs.62t.lahvak+n@mw152sa.mps.ohio-state.edu> Subject: Re: [SLRN] delete_thread (was Re: slrn questions) Date: Tue, 08 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> <slrn5rnhg7.36l.lahvak+n@math.mps.ohio-state.edu> <slrn5rnijb.12u.Hubert.Canon@hetre.irisa.fr> <slrn5s4hks.1bq.Hubert.Canon@guenievre.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: 255512981 Organization: Department of Mathematics, The Ohio State University Reply-To: lahvak+n@math.ohio-state.edu Newsgroups: news.software.readers