On Wed, 19 May 2010 09:44:43 -0500
Terry Brown <[email protected]> wrote:

> > This is not as intuitive, but more hygienic:
> > 
> > @button foo
> >    CODE
> > @rclick bar
> > @rclick baz  
> 
> That would certainly be easier to do.

Hmm,

@button foo
    CODE
  @rclick bar
  @rclick baz

actually works as desired as long as CODE doesn't include @others

So I'll scan prev. sib. and parent to find a @button for @rclick nodes.

Hmm, again.  I guess I hadn't quite thought this through.  When should @rclick 
processing happen?  I mean creation of the menu entry, not running the 
callback.  Easy to do is on file load.  On manual button creation might be 
harder.  Maybe not, I'll try it and see.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to