Re: [code] Textadept: timeout-interval'd functions live on after reset (both old and new)

From: Phil S. <>
Date: Thu, 8 Nov 2018 09:58:29 +0100

> I think it's worth asking yourself why you are calling `reset()`

Well I'm live-coding my Textadept scripts in Textadept, that's why. :D

It's OK if it's a Known Gotcha (now I know!), that was just a tricky
part I could only slough through via regularly-interval'd-debug-prints
for myself. (So for that part I had to quit-restart which, granted, is
almost as fast.) Not a permanent fixture, nor do my scripts reset TA

Thanks for confirming its known and not some obscure bug at my end =)

On 11/8/18 3:10 AM, Mitchell wrote:
> Hi Phil,
> On Wed, 7 Nov 2018, Phil S. wrote:
>> Hi all, it seems like functions that are scheduled to repeat every foo
>> interval accumulate over resets. After a couple dozen resets I notice
>> that my
>> every-5-seconds function is running far more often and it even seems
>> with old
>> closure state too.
> I think it's worth asking yourself why you are calling `reset()` so
> often. The function was designed for users to quickly test configuration
> or theme changes, not for persistent use.
>> Could I be wrong? Could this be changed? Keeping track of resets and
>> having
>> 'old' funcs notice they should die and thus return false-or-nil seems
>> like a
>> pretty unwieldy prospect to this API userĀ  =)
> It would not be easy to change this, unfortunately.
> Cheers,
> Mitchell

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Thu 08 Nov 2018 - 03:58:29 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Nov 2018 - 06:49:27 EST