Re: [code] corrections, improvements and so on...

From: Mitchell <>
Date: Thu, 6 Apr 2017 23:01:43 -0400 (EDT)


On Thu, 6 Apr 2017, Pascal wrote:

> hi everybody,
> could I have your critical and wise look on these 200 lines of code that
> allowed me to model TA as I understood it ?

That looks fine to me. The only thing I'd recommend is move your xml
keybindings outside the `events.LEXER_LOADED` event:

   if not keys.xml then keys.xml = {} end
   keys.xml[key1] = f1
   keys.xml[key2] = f2

Where key1 and f1 are the string key sequence and Lua function to run,

That way you are not re-assigning the same keys every time you load an XML


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Thu 06 Apr 2017 - 23:01:43 EDT

This archive was generated by hypermail 2.2.0 : Fri 07 Apr 2017 - 06:54:27 EDT