Ensures that ipython-complete is called.
python-mode defines a key-binding for the tab key for its own completion function (py-shell-complete) if that one wins, then py-shell-complete will hang emacs as it tries to communicate with the python shell process which does not exist. This uses def-advice to instead call ipython-complete when py-shell-complete is called.
|@@ -423,6 +423,14 @@ in the current *Python* session."|
|(message "Making completion list...%s" "done")))))|
|+;;; if python-mode's keybinding for the tab key wins then py-shell-complete is called|
|+;;; instead of ipython-complete which result in hanging emacs since there is no shell|
|+;;; process for python-mode to communicate with|
|+ (around avoid-py-shell-complete activate)|
|;;; autoindent support: patch sent in by Jin Liu <firstname.lastname@example.org>,|
|;;; originally written by email@example.com|
|;;; Minor modifications by fperez for xemacs compatibility.|