Re: [code] [textadept] Textadept 7.5

From: Mitchell <m.att.foicica.com>
Date: Sat, 12 Jul 2014 21:20:24 -0400 (EDT)

Hi Richard,

On Sat, 12 Jul 2014, Richard Philips wrote:

> Hi Mitchell,
>
>
> A small difference between Textadept 7.4 and 7.5:
>
> In _USERHOME..'/modules/common/init.lua, I had the content:
>
> local lfs = require 'lfs'
> for filename in lfs.dir(_USERHOME..'/modules/common/') do
> if filename:find('%.lua$') and filename ~= 'init.lua' then
> require('common.'..filename:match('^(.+)%.lua$'))
> end
> end
>
>
> (Probably, I found this on the wiki somewhere: in my init.lua, the first
> line is: require 'common')
>
>
>
>
> In 7.4, this works perfect!
>
>
>
> In 7.5: this does not work. The problem is solved by removing "local lfs =
> require 'lfs'".

Textadept 7.5 upgrades lfs to v1.6.2, which probably introduced the
problem. Anyway, lfs is built into Textadept so you shouldn't have to
"require" it. I'm not sure it's worth patching lfs again to prevent this.

Cheers,
Mitchell

-- 
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 Sat 12 Jul 2014 - 21:20:24 EDT

This archive was generated by hypermail 2.2.0 : Sun 13 Jul 2014 - 06:39:36 EDT