Re: unit testing increases number of registered handlers

2014-07-01 Thread Edward K. Ream
On Tue, Jul 1, 2014 at 9:02 AM, Edward K. Ream wrote: I have completed everything related to idle-time processing. The are now 6 new commands: enable-idle-time-tracing disable-idle-time-tracing toggle-idle-time-tracing enable-idle-time-events disable-idle-time-events toggle-idle-time-events M

Re: unit testing increases number of registered handlers

2014-07-01 Thread Edward K. Ream
On Monday, June 30, 2014 12:21:07 PM UTC-5, Edward K. Ream wrote: > > On Mon, Jun 30, 2014 at 11:48 AM, 'Terry Brown' via leo-editor > wrote: > > > But even if the idle time was respected, are there really separate idle > > times for each registered hook? Or just the first to init. idle time

Re: unit testing increases number of registered handlers

2014-06-30 Thread Edward K. Ream
On Mon, Jun 30, 2014 at 11:48 AM, 'Terry Brown' via leo-editor wrote: > But even if the idle time was respected, are there really separate idle > times for each registered hook? Or just the first to init. idle time > events (which I think is in core) gets to specify the time? > > I'm not sure

Re: unit testing increases number of registered handlers

2014-06-30 Thread 'Terry Brown' via leo-editor
On Mon, 30 Jun 2014 11:44:59 -0500 "Edward K. Ream" wrote: > On Mon, Jun 30, 2014 at 4:31 AM, Fidel N wrote: > > > Still, idle is not yet useful because of firing several times the > > command and not respecting the time. > > Let's investigate the second problem (not respecting idle time). Bu

Re: unit testing increases number of registered handlers

2014-06-30 Thread Edward K. Ream
On Mon, Jun 30, 2014 at 4:31 AM, Fidel N wrote: > Still, idle is not yet useful because of firing several times the command > and not respecting the time. Let's investigate the second problem (not respecting idle time). What happens for you if you change:: timer.start(1000) to:: timer

Re: unit testing increases number of registered handlers

2014-06-30 Thread Fidel N
Big thanks both. The doc I was refereing to is the main article "scripting with Leo" in the website, you can click the link to go there: Enabling idle time event handlers Two metho

Re: unit testing increases number of registered handlers

2014-06-30 Thread 'Terry Brown' via leo-editor
On Mon, 30 Jun 2014 02:15:17 -0700 (PDT) Fidel N wrote: > def on_idle(tag, keywords): > g.es("iddle timer") > > g.registerHandler("idle", on_idle) > > g.enableIdleTimeHook(idleTimeDelay=5000) Edward alluded to some of this in his response, but I'd say: Never heard of the idleTimeDelay par

Re: unit testing increases number of registered handlers

2014-06-30 Thread Edward K. Ream
On Mon, Jun 30, 2014 at 4:31 AM, Fidel N wrote: > Well after checking some more, I realized I was wrong in the hooks being > persistent (which made no sense, g is refreshed each time Leo restarts...) Whew! > But still the hooks wont respect the time, and several hooks are firing > instead of onl

Re: unit testing increases number of registered handlers

2014-06-30 Thread Fidel N
Well after checking some more, I realized I was wrong in the hooks being persistent (which made no sense, g is refreshed each time Leo restarts...) But still the hooks wont respect the time, and several hooks are firing instead of only one (the message appears 2 or 3 times even if I just run the

Re: unit testing increases number of registered handlers

2014-06-30 Thread Fidel N
Hi Edward, im having this issue again: Following the directions on Leo tutorials, I run this script in a node: def on_idle(tag, keywords): g.es("iddle timer") g.registerHandler("idle", on_idle) g.enableIdleTimeHook(idleTimeDelay=5000) Then, not only the iddle timer will run more often than

Re: unit testing increases number of registered handlers

2011-02-28 Thread Edward K. Ream
On Tue, Feb 15, 2011 at 4:01 PM, vitalije wrote: > Hello Edward, > I suppose that you have forgotten this thread, so I am touching it > again. Thanks for the reminder. Rev 3877 of the trunk contains several changes to the mod_autosave plugin that may fix the problem. Please try the new code an

Re: unit testing increases number of registered handlers

2011-02-15 Thread vitalije
> Thanks for this.  I'll investigate. > > Edward Hello Edward, I suppose that you have forgotten this thread, so I am touching it again. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-editor@goog

Re: unit testing increases number of registered handlers

2011-02-04 Thread Edward K. Ream
On Fri, Feb 4, 2011 at 6:58 AM, vitalije wrote: > Finally, I realized that every time when I invoke unit test command Alt > +5, number of registered handlers increased. Thanks for this. I'll investigate. Edward -- You received this message because you are subscribed to the Google Groups "le

unit testing increases number of registered handlers

2011-02-04 Thread vitalije
Hello, while I was experimenting with registering handler for "idle" events, I have noticed that there were about 40 registered handlers for "idle" event. What was most interesting is the fact that those handlers were all about the same function onIdle in mod_autosave plugin. At first I thought tha