I just got bit by the same monkey patch bug that's bitten me before.
It's really weird.
If I do this:
------
import leoFind
def new_find_all(self):
g.es("new find all")
leoFind.leoFind.findAll = new_find_all
g.es("patch applied")
c.executeMinibufferCommand("clone-find-all")
-------
It seems to work, but the patch doesn't actually get applied.
But if I change the first line to:
import leo.core.leoFind as leoFind
Then it works. Anybody have any idea why this is happening?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---