On Wednesday, May 6, 2015 at 10:55:31 AM UTC-5, Edward K. Ream wrote:

> The goal is simple: improve the g.command decorator so that all commands 
can be defined like this:

>
>     @g.command('command-name')
>     def do_command(self,event=None):
>         '''Implement the command'''
>

This is turning into a real can of worms. The problems arise not so much 
from decorators as from the way-too-complex code that dispatches commands. 
Simplifying this mess now has top priority.

c.universalCallback looks like it must go. I did not write this code, but 
I'll make sure that it's goals are accomplished in other ways. To be fair, 
there are many other culprits besides c.universalCallback and I wrote all 
of them :-)

As usual, new code will be enabled by a global switch: g.new_dispatch 
switch. The old code will remain unchanged when this switch is False.  This 
will allow the master branch to remain stable even while performing 
experiments.

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 [email protected].
To post to this group, send email to [email protected].
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