Re: [textadept] question on unsplitting a view when encountering a lua error

From: mitchell <c....at.caladbolg.net>
Date: Sat, 5 Feb 2011 00:58:06 -0500 (EST)

Hi,

> On Tue, Dec 14, 2010 at 4:16 PM, mitchell <c....at.caladbolg.net> wrote:
>> Robert,
>>
>>> Mitchell,
>>> is there a way to delete the current keychain when an error is raised?
>>> Is the error event raised for Lua errors as well?
>>> from events.lua:
>>> -- * **error** (text)
>>> -- � Called when an error occurs in the C code.
>>> -- � � � - text: The error text.
>>
>> An error handler can be added to keys.lua:
>>
>> events.connect('error', clear_key_sequence)
>>
>> Lua errors emit error events. Does this fix the problem? If so I will commit
>> to hg later today.
>>
>> mitchell
>>
> For a simple command, adding clear_key_sequence to keys.lua works:
> keys.au = { unknown_command }
> Ctrl-w closes the error buffer immediately
>
> With
> keys.ct.o = { unknown_keychain_command }
> I get the error buffer, but the char "o" is inserted and even though
> the caret is blinking in the error buffer the other buffer remains in
> focus and is still set as the buffer title.

I have a solution I will be committing soon.

mitchell
Received on Sat 05 Feb 2011 - 00:58:06 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:57:03 EST