🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40216

Re: Slrn: binding same slang macro to multiple keys and posting failures

#40216
From: he... Heikki Kantola
Date: Sat, 18 Apr 1998 00:00
42 lines
2528 bytes

Jan Hlavacek <lah...@math.mps.ohio-state.edu> informed
news.software.readers with the following:
>On 17 Apr 1998 11:40:57 GMT, Heikki Kantola <he...@iki.fi> wrote:
>> It took me a while to detect that error message:
>> 	[...]
>> 	loading /home1/ykielo/hkantola/.slrn.sl
>> 	S-Lang Error: Inconsistency in define key.
>> 	[...]
>> means that one can't bind same Slang macro to more than one key at
>> time without using stupid hacks ie. making extra functions to call
>> the original macro. Why is it so? 

[several examples]

>As far as I can tell by examining the source,  these are the only
>situations where this error occures.  I thing the reason is that if you
>map something to "^A",  and something else is already mapped to "^A",
>you just loose the one mapping,  which gets redefined by the new one.
>
>However,  if there is something mapped to "^A^T",  it means that "^A" is
>a "prefix" and there can possibly be whole bunch of other stuff starting
>with "^A",  so redefining "^A" can cause you to loose whole bunch of
>mappings.
>
>It has nothing to do with the function you are mapping it to.
>
>I am afraid I am not very clear here.  It's too early in the morning.

It was clear enough that I got idea what this "feature" is about:
looks like if you try to bind key combinations with similar beginning
(in my case it was two escape sequences which different terminals 
appear to generate from left arrow key) you can't bind them to same
function...

-- 
Heikki "Hezu" Kantola, <Heikki...@IKI.FI>
Lähettämällä mainoksia tai muuta asiatonta sähköpostia yllä olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
Technical Details
Message-ID: <slrn6jgv6l.127.hezu@tuuri.ling.helsinki.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn6jeftq.hqo.hezu@tuuri.ling.helsinki.fi> <slrn6jeqs0.jj9.lahvak@math.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6jgv6l.127.hezu@tuuri.ling.helsinki.fi>
Subject: Re: Slrn: binding same slang macro to multiple keys and posting failures
Date: Sat, 18 Apr 1998 00:00:00 +0000
From: he...@iki.fi (Heikki Kantola)
References: <slrn6jeftq.hqo.hezu@tuuri.ling.helsinki.fi> <slrn6jeqs0.jj9.lahvak@math.mps.ohio-state.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 345320747
Content-Transfer-Encoding: 8bit
Mime-Version: 1.0
Mail-Copies-To: never
Content-Type: text/plain; charset=iso-8859-1
Organization: Department of General Wizardry, Unseen University, Ankh-Morpork
Newsgroups: news.software.readers,alt.lang.s-lang