rlcompleter and Emacs

Stuart Reynolds S.I.Reynolds at cs.bham.ac.uk
Tue Mar 21 15:27:26 EST 2000


I've compiled in support for readline (on Solaris) and rlcompleter works
fine from the shell. However, where the interpreter is started from
python-Mode for (GNU)(X-)Emacs it doesn't.

I've tried executing,

  import readline
  import rlcompleter
  readline.parse_and_bind("tab: complete")

and it just beeps when I press tab to form completions.

Is there a fix?

Cheers,

Stuart



PS. From emacs, M-x describe-key [TAB] prints,

TAB runs the command indent-for-tab-command
   which is an interactive compiled Lisp function in `indent'.
(indent-for-tab-command &optional PREFIX-ARG)

t to under next indent point in previous nonblank line.
An indent point is a non-whitespace character following whitespace.
If the previous nonblank line has no indent points beyond the
column point starts at, `tab-to-tab-stop' is done instead.



More information about the Python-list mailing list