# HG changeset patch
# User Eli Zaretskii <eliz@gnu.org>
# Date 1127559798 0
# Node ID df079883ac40f9548b0fba05d35a56cb727f3c48
# Parent  e60ed2bd9d3dadc401b3c24aef533e7d47350a54
(ehelp): Add g and l to arg list, and use them in the call to `help'.

diff -r e60ed2bd9d3d -r df079883ac40 etc/emacs.py
--- a/etc/emacs.py	Sat Sep 24 10:58:16 2005 +0000
+++ b/etc/emacs.py	Sat Sep 24 11:03:18 2005 +0000
@@ -82,11 +82,11 @@
     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):