Commit 23f095aa authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(ehelp): Add g and l to arg list, and use them in the call to `help'.

parent ee6e99e0
......@@ -82,11 +82,11 @@ def complete (text, namespace = None):
print '_emacs_out ()'
def ehelp (name):
"""Get help on string NAME.
def ehelp (name, g, l):
"""Get help on string NAME using globals G and locals L.
First try to eval name for, e.g. user definitions where we need
the object. Otherwise try the string form."""
try: help (eval (name))
try: help (eval (name, g, l))
except: help (name)
def eimport (mod, dir):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment