Re: [textadept] modifying _m.textadept.run.run_command has no effect from init()

From: mitchell <c....at.caladbolg.net>
Date: Fri, 6 Aug 2010 12:49:18 -0400 (Eastern Daylight Time)

Hi,

On Fri, 6 Aug 2010, Ois�n Mac Fheara� wrote:

> After run_supplemental.lua failed to take effect, I added the
> following line to my init.lua:
>
> _m.textadept.run.run_command.lua = '/usr/local/bin/luajit-2.0.0-beta4 %
> (filename)'
>
> However, nothing seems to be changed in the
> _m.textadept.run.run_command table. Lua files still fail because
> textadept looks for "lua" and not "/usr/local/bin/luajit-2.0.0-beta4".
>
> Then if I manually evaluate the same command, it works. Why does it
> not work from init.lua?

The 'lua' module sets the appropriate run command when a Lua file is
loaded (which is after init()). You can get around this by copying the
module to your ~/.textadept/modules directory and modifying the file from
there.

mitchell
Received on Fri 06 Aug 2010 - 12:49:18 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:50:31 EST