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

From: Robert <ro....at.web.de>
Date: Fri, 6 Aug 2010 18:49:42 +0200

2010/8/6 Oisín Mac Fhearaí <denpasho....at.gmail.com>:
> 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?
>

I think because it is defined in the built-in Lua module as well,
which gets loaded when you open a Lua file and overwrites your
definition. You could copy the Lua module
at textadept/modules/lua to ~/.textadept/modules/lua and change the
run command in "commands.lua".

- Robert
Received on Fri 06 Aug 2010 - 12:49:42 EDT

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