Re: [code] [textadept] Menu modification delay 2

From: Mitchell <m.att.foicica.com>
Date: Fri, 11 Nov 2016 10:04:56 -0500 (EST)

Hi Gabriel,

On Thu, 10 Nov 2016, Gabriel Dubatti wrote:

> Hi Mitchell,
>
> Splitting the code in this way:
>
> local m1=_L['_File']
> local m2=_L['_New']
>
> ....
>
> local m15=_L['Quickly Open _Current Directory']
> local m16=_L['Quickly Open Current _Project']
>
> -------
>
> local menu= textadept.menu.menubar[m1]
> menu[m2][2]= nf
> menu[m3][2]= of
> menu[m4][2]= orf
> menu[m5][2]= cb
> menu[m6][2]= cab
> ....
>
> I can confirm that all the delay is in menu[] modification.

Thanks for your sleuthing! I've committed a fix[1] that should prevent the
delays over time. Please test for side effects, as I do not use a menubar
at all and my regression tests may not have covered everything.

Cheers,
Mitchell

[1]: http://foicica.com/hg/textadept/rev/fb9057b47510

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 11 Nov 2016 - 10:04:56 EST

This archive was generated by hypermail 2.2.0 : Sat 12 Nov 2016 - 06:52:45 EST