This works:
-------------
from leo.core.leoEditCommands import minibufferFind

def generalSearchHelper
(self,pattern,cloneFindAll=False,findAll=False):
    g.es("monkey patched generalSearchHelper")
minibufferFind.generalSearchHelper = generalSearchHelper

c.searchCommands.searchWithPresentOptions(None)
--------------

So changing 'from leoEditCommands import' to 'from
leo.core.leoEditCommands' fixed the problem.  I'm not really sure
why.
I don't think it has anything to do with the 'from' import, because I
tried changing it to just 'import leoEditCommands' and then doing
'leoEditCommands.minibufferFind...', but that had the same problem.
It seems to me that the line 'from leoEditCommands...' should've
caused an error to be raised.  I guess leo messes with the
pythonpath?  Is there a good reason for doing that?
--~--~---------~--~----~------------~-------~--~----~
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