Re: Better @g.command decorator

2015-05-18 Thread reinhard . engel . de
Maybe you should using different decorators. No, it doesn't work. In ​leo/commands/helpCommands I replaced:​ > > def cmd(name): > '''Command decorator for the helpCommands class.''' > return g.new_cmd_decorator(name,['c','helpCommands',]) > > with cmd = g.cmd where g.cmd is defined as you

Re: g.command questions

2015-05-18 Thread 'Terry Brown' via leo-editor
On Sun, 17 May 2015 11:48:26 -0500 "'Terry Brown' via leo-editor" wrote: > file:///home/tbrown/t/Package/leo/git/leo-editor/leo/plugins/leoPluginsRef.leo#Plugins:2-->Scripting:14-->@file%20leoscreen.py:0-->cmd_run_all_here%20(leoscreen_Controller):12 > > and friends are getting c instead of {'c'

Re: g.command questions

2015-05-18 Thread Edward K. Ream
On Sun, May 17, 2015 at 11:48 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > > leoscreen.py:0-->cmd_run_all_here > ​ ​ > and friends are getting ``c`` instead of ``{'c':c}`` now as their first > ​ ​ > argument. > ​I see you changed ​ cmd_run_all_here​ ​ at rev 0d3dc41.

Re: The problem with "improving" code, and a solution

2015-05-18 Thread Edward K. Ream
On Sunday, May 17, 2015 at 7:14:33 AM UTC-5, Edward K. Ream wrote: > We want a diff that shows only changes that *do *change the [ast tree, that is, the tree's hash]. I haven't found any such tool yet. It's an important, non-trivial problem. I only have some vague ideas at present. If we are

Re: The problem with "improving" code, and a solution

2015-05-18 Thread 'Terry Brown' via leo-editor
On Mon, 18 May 2015 06:50:53 -0700 (PDT) "Edward K. Ream" wrote: > On Sunday, May 17, 2015 at 7:14:33 AM UTC-5, Edward K. Ream wrote: > > > We want a diff that shows only changes that *do *change the [ast > > tree, > that is, the tree's hash]. > > I haven't found any such tool yet. It's an imp

Re: The problem with "improving" code, and a solution

2015-05-18 Thread Edward K. Ream
On Mon, May 18, 2015 at 9:44 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > > There are tools that measure coverage, their methods might be > interesting to you beyond the information about coverage they provide. > ​Thanks for the reminder. EKR -- You received this me

Re: Better @g.command decorator

2015-05-18 Thread Edward K. Ream
On Mon, May 18, 2015 at 3:45 AM, wrote: ​> ​ Maybe you should using different decorators. ​I think the present code is good enough. Certainly @keybinding isn't needed. The defaults ​ ​belong in leoSettings.leo. Imo, the @g.cmd project has completed successfully. EKR -- You received this me