I'll check it out! Don't worry about the delay. Thanks for the response.

On Monday, June 8, 2015 at 7:40:08 PM UTC-4, Edward K. Ream wrote:
>
> On Mon, Jun 1, 2015 at 7:40 AM, john lunzer <[email protected] 
> <javascript:>> wrote:
>
>> I'm working on a command that makes a change to c.p.b. If I make that 
>> change simply by assigning a string to c.p.b I can't use Ctrl+Z to undo the 
>> change.
>>
>> How would I go about making my command "undo enabled"?
>>
>
> ​My apologies for the delay in responding.
>
> The general ideas are in LeoDocs.leo:
>
> LeoDocs.leo#Leo's Documentation-->Advanced Topics-->A scripting 
> miscellany-->@rst html\scripting-miscellany.html-->Making operations 
> undoable
>
> Leo's sources contain many examples of the various patterns involved.  
> When I want to make something undoable, I use the undo code in a similar 
> command as a guide.
>
> HTH.  Feel free to ask more questions here.  I'll answer them promptly.
>
> 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