[NTG-context] Get list of all buffer names from lua

Hans Hagen j.hagen at xs4all.nl
Tue Jan 8 10:29:10 CET 2019


On 1/8/2019 2:39 AM, Henri Menke wrote:
> On 8/01/19 2:29 PM, Stanislav Sokolenko wrote:
>> That's perfect, thank you! I did see the cache variable in buff-ini.lua
>> but didn't realize it was being used as an upvalue in a closure. Is
>> there a specific reason for using the --debug flag rather than just
>> loading the debug module directly in the code? The following seems to
>> work without the --debug flag but I want to make sure I'm not causing
>> some sort of side effect.
> 
> Interesting... Actually it should not work, because this way you can
> escape the sandboxing.  I guess Hans will fix that in the future, so you
> shouldn't rely on that.
> 
> @Hans: To disable debug completely you should add
> `package.loaded["debug"] = nil` somewhere.
we never disable it completely (we keep the traceback for instance) but 
indeed we also need to adapt loaded

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list