python-mode has two slightly annoying behaviours, which
this patch attempts to address:
1) py-shell always changes mode-name of buffer
This happens because py-toggle-shells changes mode-name
regardless of what it was before (e.g., invoke py-shell
from a Elisp-mode buffer, mode-name becomes Python).
2) py-shell always switches to a new window
This happens even if py-shell is invoked when the
*Python* buffer is the active buffer; one then ends up
with two windows showing the *Python* buffer.
The patch is against python-mode.el revision 4.67.
Log in to post a comment.