#18 Two minor tweaks to python-mode

closed-accepted
nobody
None
5
2005-06-04
2004-11-10
Rory Yorke
No

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.

Discussion

  • Rory Yorke

    Rory Yorke - 2004-11-10

    Patch to python-mode.el revision 4.67

     
  • Skip Montanaro

    Skip Montanaro - 2005-06-04
    • status: open --> closed-accepted
     
  • Skip Montanaro

    Skip Montanaro - 2005-06-04

    Logged In: YES
    user_id=44345

    Rory, I applied part one of your patch as v 4.73. At first I thought I
    couldn't reproduce the part two problem. Then I read what you wrote
    properly and discovered it was still a problem. That went into v 4.74.

     

Log in to post a comment.