[IPython-user] python-mode tab completion problem
a.schmolck at gmx.net
Wed Dec 7 16:38:07 CST 2005
After a brief investigation, I think I have found the cause of the problem.
Apparently Emacs 22 for some reason (a bug?) doesn't grok [tab] properly as a
key name. Emacs 21 *does*. Anyway, try replacing line 74 in ipython.el:
(define-key py-shell-map [tab] 'ipython-complete)
(define-key py-shell-map "\t" 'ipython-complete)
and see whether that does the trick.
Fernando Perez <Fernando.Perez at colorado.edu> writes:
> Hi Kamen,
> Kamen Todorov wrote:
>> Dear Fernando Perez,
>> I am an emacs user and use ipython version 0.6.15. I alse have
>> version 1.8 of ipython.el and version 4.75 of python-mode.el (which is
>> part of python-mode 1.0). Autocompletion is not working for me in the
>> in the C-! session. Perhaps I am missing something? I'd appreciate
>> any pointers.
>> Thanks and regards,
>> Kamen Todorov
> I suggest that this question is best posted on the ipython-user list
> (subscription required, info here: http://ipython.scipy.org), where I've
> forwarded it already.
> I say this because I tried and for some reason I can't quite make this work
> with plain GNU emacs. I normally only use XEmacs, so it's quite possible that
> my local config has things in it which break GNU emacs, and I'm far from an
> *emacs configuration expert. My efforts so far haven't provided anything,
> which is why I suggest you follow up on the list, where users of GNU emacs may
> have other suggestions.
> I can confirm that a simple
> (require 'ipython)
> is all I need under XEmacs for this to work as expected, including tab
> completions showing up in a normal emacs completions buffer.
> I'm sure getting this to work with regular emacs is perfectly possible, it's
> just that I can't seem to find the magic incantation for that.
> IPython-user mailing list
> IPython-user at scipy.net
Alexander Schmolck Postgraduate Research Student
Department of Computer Science
University of Exeter
Harrison Building, North Park Rd, EX4 4QF
A.Schmolck at gmx.net http://www.dcs.ex.ac.uk/people/aschmolc/
More information about the IPython-user