Mercurial > emacs
changeset 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 | e60ed2bd9d3d |
children | 5d4d59ecfc06 |
files | etc/emacs.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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):