Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#21 tab completion for py-shell

open
nobody
None
5
2005-07-18
2005-07-18
No

I always used py-shell for its Emacs editing
capabilities and Python
in the Linux shell for its support for completion with
readline. Finally I sit down to have both in one
(polished recently).

What are the chances to include this (modified as
needed, names for sure are not perfect)?

Here are the features/issues:

0. Works for both GNU Emacs (21.4 in Debian Sid) and
XEmacs (21.4 in
Debian Sid). For XEmacs with some emulation of GNU
Emacs comint
functions.

1. It can complete in multiline input -- it collects
the input send
interactively to Python in case of completion,
injects the
completion code after C-c and resends the the saved
lines.

2. The python completion code may omit some wizard-only
knowledge (if
any).

3. completion function inserts tab if nothing to
complete -- good
candidate for tab key.

4. I send it as separate module so
py-comint-output-filter-function
(from revision: 4.62) is included with small
modification. py-shell-hook needed to run it
inculded the module
comment.

Discussion