aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2005-09-24 11:03:18 +0000
committerEli Zaretskii2005-09-24 11:03:18 +0000
commit23f095aa5f5ea772cedab87db3696594d21dcbb6 (patch)
treeb8ae7d772c92415caceec7710a43f539674fdd17 /etc
parentee6e99e0f0c6ec8a6e52c6e878387b3147d9508c (diff)
downloademacs-23f095aa5f5ea772cedab87db3696594d21dcbb6.tar.gz
emacs-23f095aa5f5ea772cedab87db3696594d21dcbb6.zip
(ehelp): Add g and l to arg list, and use them in the call to `help'.
Diffstat (limited to 'etc')
-rw-r--r--etc/emacs.py6
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):
82 except: 82 except:
83 print '_emacs_out ()' 83 print '_emacs_out ()'
84 84
85def ehelp (name): 85def ehelp (name, g, l):
86 """Get help on string NAME. 86 """Get help on string NAME using globals G and locals L.
87 First try to eval name for, e.g. user definitions where we need 87 First try to eval name for, e.g. user definitions where we need
88 the object. Otherwise try the string form.""" 88 the object. Otherwise try the string form."""
89 try: help (eval (name)) 89 try: help (eval (name, g, l))
90 except: help (name) 90 except: help (name)
91 91
92def eimport (mod, dir): 92def eimport (mod, dir):