mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
(ehelp): Add g and l to arg list, and use them in the call to `help'.
This commit is contained in:
parent
ee6e99e0f0
commit
23f095aa5f
1 changed files with 3 additions and 3 deletions
|
|
@ -82,11 +82,11 @@ def complete (text, namespace = None):
|
||||||
except:
|
except:
|
||||||
print '_emacs_out ()'
|
print '_emacs_out ()'
|
||||||
|
|
||||||
def ehelp (name):
|
def ehelp (name, g, l):
|
||||||
"""Get help on string NAME.
|
"""Get help on string NAME using globals G and locals L.
|
||||||
First try to eval name for, e.g. user definitions where we need
|
First try to eval name for, e.g. user definitions where we need
|
||||||
the object. Otherwise try the string form."""
|
the object. Otherwise try the string form."""
|
||||||
try: help (eval (name))
|
try: help (eval (name, g, l))
|
||||||
except: help (name)
|
except: help (name)
|
||||||
|
|
||||||
def eimport (mod, dir):
|
def eimport (mod, dir):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue