Re: [code] [textadept] What happened to the module function?

From: Mitchell <>
Date: Sat, 18 Aug 2012 23:46:54 -0400 (EDT)


On Sat, 18 Aug 2012, Jason wrote:

> On 08/18/2012 04:03 PM, Robert wrote:
>> There was some discussion about this when Lua 5.2 was used in
>> Textadept - maybe you just found a use case for having it enabled.
>> Mitchell might have more to say on this...
>> How have you LuaSocket installed, via LuaRocks?
> Yes, with LuaRocks.
>> Otherwise, you might try the LuaJIT enabled build of Textadept (this
>> should still be Lua 5.1 compatible, I think, as there is LuaJIT has
>> only upwards compatibility for 5.2 features) or try compiling
>> LuaSocket for 5.2 (there seem to be unofficial ports).
> Oddly enough I discovered this while using the LuaJIT build of Textadept.
> It seems to have been stripped of this valid Lua 5.1 standard library
> function...

You can change core/compat.lua:30 to not set `module()` to `nil`.

As for why Textadept uses Lua 5.2, the latest version of Lua is 5.2. That
is reason enough. You can always recompile Textadept with 5.1
compatibility enabled.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sat 18 Aug 2012 - 23:46:54 EDT

This archive was generated by hypermail 2.2.0 : Sun 19 Aug 2012 - 06:52:29 EDT