Re: [code] [textadept] Textadept events

From: Richard Philips <>
Date: Tue, 17 Sep 2013 18:28:14 +0200

Works perfectly.

Never in my whole live did I encounter such a fast response.

Welcome to Textadept I guess :-)

By the way,

I have now a functioning spell checker for Textadept.

It is based on:

   - luajit (for its ffi capabilities)
   - hunspell

There is no recompiling necessary: just installing the necessary lua
(and ffi) based files and everything works perfectly.
Dictionaries are those already on the system.

The only drawback is that I still have to DOUBLE_CLICK on the words to
get spelling information.
I try to come op with other schemes to use the spell checker.
Also adding new words to the dictionaries can be improved.

If everything is stabilized I write an entry in the wiki.



On 09/17/2013 06:08 PM, Mitchell wrote:
> Hi Richard,
> On Tue, 17 Sep 2013, Richard Philips wrote:
>> Hi,
>> I'm working with textadept events.
>> I try to connect a Lua function to the DOUBLE_CLICK event.
>> That works.
>> But it seems that there are other actions connected to this event
>> (the word under the caret is highlighted).
>> I'm unable to delete these actions: with '|disconnect|(/event, id/)'
>> you need an id to disconnect.
>> By the way, I am aware how to prevent firing other actions which are
>> registered after mine, but this is exactly the opposite.
>> Any advice to tackle this problem (especially with the DOUBLE_CLICK
>> event on Ubuntu) would be much appreciated.
> Highlighting the double-clicked word is default Scintilla behavior --
> no Textadept event is responsible for this. If you want to disable
> highlighting, use something like this:
> events.connect(events.DOUBLE_CLICK,
> function(pos) buffer:goto_pos(pos) end, 1)
> Cheers,
> Mitchell

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Tue 17 Sep 2013 - 12:28:14 EDT

This archive was generated by hypermail 2.2.0 : Wed 18 Sep 2013 - 06:36:05 EDT