Mercurial > emacs
diff etc/emacs.py @ 65673:df079883ac40
(ehelp): Add g and l to arg list, and use them in the call to `help'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 24 Sep 2005 11:03:18 +0000 |
parents | f05a048483cc |
children | e8a3fb527b77 |
line wrap: on
line diff
--- 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):