ipython/ipython — pull request #1015 by paykroyd (2011-11-19 19:34:38+00:00)
Title: emacs freezes when tab is hit in ipython with latest python-mode

python-mode has it's own completion function mapped to the tab key. When that mapping wins, the tab will cause that function to fire and it will hang emacs. I've used a defadvice to redirect every call to python-mode's completion function instead to ipython's.

Honestly, I'm not sure if this is the best way since python-mode seems to try to make all configuration buffer-local and this is more of a global solution. But to get ipython working with python-mode you current have to bypass that anyway.

Suggestions welcome.

(I've got @deftpunk's patch in here too because I needed that to get ipython working with the most recent python-mode. Sorry if that's messy.)