On Tuesday, May 5, 2015 at 10:20:20 AM UTC-5, Edward K. Ream wrote:

> [The new @cmd] decorator would eliminate the need for command-definition 
tables that occur in various places in leoEditCommands.py and 
leoCommands.py.

Rev 1789ef6 contains "@button create decorators" in scripts.leo that will 
soon automatically create decorators for all but 11 of the 447 commands 
defined in leoPy.leo. It was fun creating this script.  It handles what 
otherwise be very tedious operations.

The 11 remaining cases truly are special, so there is no need to refine the 
@button node further except to actually have it change Leo's source code.  
That will be coming a bit later...

Note that this script must run in leoPy.leo a node called "Found: 
getPublicCommands" must also exist in leoPy.leo.  This node is the result 
of the cfa-code command.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to