Yes, the method signature has changed.  It's now:

def afterChangeNodeContents(self, p, command, bunch, inHead=False):
    """Create an undo node using d created by beforeChangeNode."""

The command argument seems to be the name of the Leo command that would 
cause the undoable changes.  Presumably this plays the role of the previous 
undoType.

On Tuesday, September 29, 2020 at 4:01:32 PM UTC-4 Arjan wrote:

> The above script used to work, but recently (after not having used it for 
> a long time), I noticed it errors:
>
> exception executing script
> TypeError: afterChangeNodeContents() got an unexpected keyword argument 
> 'dirtyVnodeList'
> only 6 lines
> --------------------
>   line 49:             p.b = s
> * line 50:             u.afterChangeNodeContents(p, undoType, bunch2, 
> dirtyVnodeList=dirtyVnodeList)
>   line 51:             p.v.setDirty()
>   line 52:             changed += 1
>
> Has this method changed? What should it look like now to have undo?
>
> Best, Arjan
>
> On Monday, March 12, 2018 at 11:49:07 PM UTC+1 Edward K. Ream wrote:
>
>>
>>
>> On Mon, Mar 12, 2018 at 5:44 PM, Arjan <[email protected]> wrote:
>>
>>> Thanks, Edward!
>>>
>>
>> You're welcome.
>>
>> Edward
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/40db7b38-63e0-436a-9b45-79c2e92f09e5n%40googlegroups.com.

Reply via email to