On Tue, 10 Mar 2009 08:37:51 -0700 (PDT)
mdb <[email protected]> wrote:

> 
> How can I make a minibuffer command operate on a particular node
> I.e.  turn
>        c.executeMinibufferCommand('write-restructured-text')
> into
>        p.executeMinibufferCommand('write-restructured-text')
>  where p is a node
> 
> If I use       c.executeMinibufferCommand('write-restructured-text')
>  I can get  log message 'No @rst nodes in selected tree'

oldp = c.currentPosition()
c.selectPosition(p)
c.executeMinibufferCommand('write-restructured-text')
c.selectPosition(oldp)

would be my guess, possibly

oldp = c.p
c.p = p
c.executeMinibufferCommand('write-restructured-text')
c.p = oldp

is an alternative now, can't recall, 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