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

From: mitchell <c....at.caladbolg.net>
Date: Tue, 14 Dec 2010 10:16:12 -0500 (Eastern Standard Time)

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
Received on Tue 14 Dec 2010 - 10:16:12 EST

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