Re: [textadept] Textadept 3.1

From: Brian Schott <briancsch....at.gmail.com>
Date: Tue, 24 Aug 2010 10:22:03 -0700

Yes, but I think it no longer makes sense now that the event
propagation model has changed. That reminds me, I probably need to fix
my XML modules also...

On Tue, Aug 24, 2010 at 9:55 AM, Robert <ro....at.web.de> wrote:
> On Tue, Aug 24, 2010 at 6:21 PM, mitchell <c....at.caladbolg.net> wrote:
>> Hi Robert,
>>
>>> On Sat, Aug 21, 2010 at 7:36 AM, mitchell <c....at.caladbolg.net> wrote:
>>>>
>>>> Changes:
>>>>
>>>>    * Refactored key commands to support propagation (1).
>>>>    * Updated to Scintilla 2.20.
>>>>    * Added Lua autocompletion(2).
>>>>
>>> I really like the Lua autocompletion but it seems the multiedit module
>>> (1) seems to somehow prevent the activation after pressing "." or ":".
>>> Has there something changed with regard to the propagation of key
>>> events? Activating the auto-completion with ctrl-enter
>>> works fine.
>>>
>>> (1) http://caladbolg.net/textadeptwiki/uploads/multiedit.lua
>>
>> Your char_added event handler is returning a boolean. When an event handler
>> returns a boolean, event propagation stops. The autocompletion is triggered
>> by 'char_added', not 'keypress'.
>>
>
> Thanks, as the Lua module adds it event handler later it didn't work.
> Changing the char_added-event to
>
> events.connect('char_added',
>        function()
>                restore = false
>                positions = {}
>                return
>        end
> )
>
> seems to work.
> Brian, was there a particular reason for stopping the propagation there?
>
> Robert
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
>
>
Received on Tue 24 Aug 2010 - 13:22:03 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:51:36 EST