Re: [code] [textadept] Textadept 11.0 alpha

From: Robert Gieseke <rob.g.att.web.de>
Date: Thu, 2 Apr 2020 12:46:28 +0200

Hi Mitchell,

i've started getting Textredux ready for Textadept 11:

https://github.com/rgieseke/textredux/commit/1aaea677bd2262831e32df1a7ebf33c16290a46f

Went quite painless, thanks a lot for your work on this update!

One question, right now i have to load Textredux as

events.connect(events.INITIALIZED, function()
  local textredux = require("textredux")
  textredux.hijack()
  keys.cg = textredux.ctags.goto_symbol
end)

Previously it wasn't necessary to wrap this in an event, i found a
section in the manual "Those types of function calls must occur within
functions (e.g. in a key binding, menu item, or events.INITIALIZED event
handler)." - but was just curious what has changed?

I think i remember that it was necessary to load Textredux like this and
then it wasn't anymore at some point ... most likely i can handle the
event also inside of Textredux.

Best,
Robert

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 02 Apr 2020 - 06:46:28 EDT

This archive was generated by hypermail 2.2.0 : Fri 03 Apr 2020 - 06:28:43 EDT