Mercurial > emacs
changeset 73713:aa6d5e310367
(eargs) Provide eldoc message for builtin types.
Make sure eargs always outputs sentinel, to avoid emacs freeze.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sun, 05 Nov 2006 17:26:45 +0000 |
parents | 38153d07b883 |
children | 9419aa009338 |
files | etc/emacs.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/emacs.py Sun Nov 05 17:25:57 2006 +0000 +++ b/etc/emacs.py Sun Nov 05 17:26:45 2006 +0000 @@ -50,11 +50,11 @@ if len (parts) > 1: exec 'import ' + parts[0] # might fail func = eval (name) - if inspect.isbuiltin (func): + if inspect.isbuiltin (func) or type(func) is type: doc = func.__doc__ if doc.find (' ->') != -1: print '_emacs_out', doc.split (' ->')[0] - elif doc.find ('\n') != -1: + else: print '_emacs_out', doc.split ('\n')[0] return if inspect.ismethod (func):