diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-09-24 11:03:18 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-09-24 11:03:18 +0000 |
commit | 23f095aa5f5ea772cedab87db3696594d21dcbb6 (patch) | |
tree | b8ae7d772c92415caceec7710a43f539674fdd17 /etc/emacs.py | |
parent | ee6e99e0f0c6ec8a6e52c6e878387b3147d9508c (diff) | |
download | emacs-23f095aa5f5ea772cedab87db3696594d21dcbb6.tar.gz |
(ehelp): Add g and l to arg list, and use them in the call to `help'.
Diffstat (limited to 'etc/emacs.py')
-rw-r--r-- | etc/emacs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/emacs.py b/etc/emacs.py index 1eba14f67a4..fcb55a0a205 100644 --- a/etc/emacs.py +++ b/etc/emacs.py @@ -82,11 +82,11 @@ def complete (text, namespace = None): except: 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): |