Re: [code] [textadept] Textadept 11.0 alpha

From: Mitchell <>
Date: Thu, 2 Apr 2020 11:14:18 -0400 (EDT)

Hi Robert,

On Thu, 2 Apr 2020, Robert Gieseke wrote:

> 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!

Ah, that happens when an initialization error occurs. Textadept wants to create a message buffer to show the error message, but it cannot do so. Normally in this case you should get a popup dialog with the error message, but it seems you did not for whatever reason.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Thu 02 Apr 2020 - 11:14:18 EDT

This archive was generated by hypermail 2.2.0 : Fri 03 Apr 2020 - 06:30:05 EDT