diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-11-05 17:26:45 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-11-05 17:26:45 +0000 |
commit | 454d572cb79cb7119844a3fb30818a65257e7c7b (patch) | |
tree | 062985419c7ae388f7d42573c9bc20aa39803fa9 /etc/emacs.py | |
parent | 0b0cccd5ef869455d6c2c6cc7573552994db37b9 (diff) | |
download | emacs-454d572cb79cb7119844a3fb30818a65257e7c7b.tar.gz |
(eargs) Provide eldoc message for builtin types.
Make sure eargs always outputs sentinel, to avoid emacs freeze.
Diffstat (limited to 'etc/emacs.py')
-rw-r--r-- | etc/emacs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/emacs.py b/etc/emacs.py index 57128e2e184..cc72233602f 100644 --- a/etc/emacs.py +++ b/etc/emacs.py @@ -50,11 +50,11 @@ def eargs (name, imports): 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): |