Comment 3 for bug 1478122

Revision history for this message
deuscovrigus@gmail.com (deuscovrigus) wrote : Re: [Bug 1478122] Re: window selection behavior of py-execute-buffer switches focus and does not reuse existing shell buffer if any

I am replying here as I dont think I can attach multiple images without
using multiple comments

On Fri, Jul 24, 2015 at 3:50 PM, Andreas Roehler <email address hidden>
wrote:

> Please send attachments again as plain png.
>
> ** Changed in: python-mode
> Assignee: (unassigned) => Andreas Roehler (a-roehler)
>
> ** Changed in: python-mode
> Status: New => Incomplete
>
> ** Changed in: python-mode
> Importance: Undecided => Medium
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1478122
>
> Title:
> window selection behavior of py-execute-buffer switches focus and does
> not reuse existing shell buffer if any
>
> Status in python-mode.el:
> Incomplete
>
> Bug description:
> Using the window setup is C-x 2 <RET> C-x 3 <RET>
> When i execute python from the top left window , a shell is popped on my
> top right window, but the focus of my buffer switches to the next window
> for no reason. I guess this wasn't intended?
>
> Additionally, if the python buffer is present in any of the current
> windows,(see init_setup_python_shell_visible.png) instead of just re-
> using that window, executing python will replace an additional
> window. And, as before, the buffer focus changes to the next window.
> (see
> additional_window_is_replaced_instead_of_reusing_bottom_window.png).
>
> Seems to me that the current implementation just picks the window
> obtained by C-x o (other-window-or-frame) without checking to see
> whether the python shell is in any of the windows. After that, the
> current buffer focus is switched to the window obtained by C-u 2 C-x o
> (i.e., two windows ahead of the window python was executed from).
>
> Again, thanks for looking into this, and , if it's not too much to
> ask, can the default placement of the chosen window for the shell be
> like the widest window available?,i.e. the bottom window of my
> 3-window setup (this would mimic a console-like environment which I'm
> sure users will like)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-mode/+bug/1478122/+subscriptions
>