Re: [code] [textadept] Textadept 11.0 alpha

From: Robert Gieseke <rob.g.att.web.de>
Date: Thu, 2 Apr 2020 16:24:47 +0200

Hi Mitchell,

On 02.04.20 16:19, Mitchell wrote:
>
> By waiting until `events.INITIALIZED` to work with menu and key binding values, you are guaranteed to be working with fully initialized menus and keys (as opposed to them being changed later by some modules loaded after textredux). I think technically things will still load if you were to call `hijack()` outside of `events.INITIALIZED`, but you might experience subtle bugs that would be hard to track down.
>
> If you could be more specific as to why or how you've determined it's now necessary for you to wrap it in an `events.INITIALIZED` handler, I could probably give you a better explanation.

I was getting an error

textadept_11.0_alpha.x86_64/core/ui.lua:49: cannot create buffers during
initialization...

However, now i cannot reproduce it anymore when i don't use
event.INITIALIZED, so it must have been something else!

Sorry for the noise and thanks for the quick reply!
Robert

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 02 Apr 2020 - 10:24:47 EDT

This archive was generated by hypermail 2.2.0 : Fri 03 Apr 2020 - 06:29:45 EDT