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

From: Mitchell <m.att.foicica.com>
Date: Mon, 14 Nov 2016 18:16:57 -0500 (EST)

Hi Gabriel,

On Sat, 12 Nov 2016, Gabriel Dubatti wrote:

> Hi Mitchell,
>
> When I tried this change at home I noticed that all my modifications in
> the menus are missing:
>
> 1) adding a new item to the menu bar:
>
> textadept.menu.menubar[ #textadept.menu.menubar+1 ]= {...}
>
> 2) modifying the edit menu:
>
> local med=textadept.menu.menubar[_L['_Edit']]
> med[#med+1]= {''}
> med[#med+1]= {'Trim trailing spaces', Proj.trim_trailing_spaces}
>
> 3) the context menu:
>
> textadept.menu.context_menu[ #textadept.menu.context_menu+1 ]=
> {...}
>
> 4) and the tab context menu:
>
> local menu= textadept.menu.tab_context_menu
> insert_menu(menu,2,{'Close Others', Proj.close_others})

That is odd. When I do 1, 2, and 3, I get the expected results. I cannot
do 4 because I don't have your `insert_menu()` function.

Does your home machine have Textadept 9 on it? Regardless, it sounds like
a copy-paste problem or something else in your ~/.textadept/init.lua that
is not present on your non-home computer. Try downloading a nightly build
and see if it works.

Cheers,
Mitchell

-- 
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 Mon 14 Nov 2016 - 18:16:57 EST

This archive was generated by hypermail 2.2.0 : Tue 15 Nov 2016 - 06:52:25 EST