Comment 14 for bug 1478122

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1478122] Re: window selection behavior of py-execute-buffer switches focus and does not reuse existing shell buffer if any

Am 30.07.2015 um 19:45 schrieb <email address hidden>:
> so far my temporary solution that has the correct window-selection
> behavior is by keeping py-keep-windows-configuration t and running this
> function:
>
> (defun run-ipython ()
> "Use compile to run python programs"
> (interactive)
> (py-execute-buffer)
> (display-buffer "*IPython*" t)
> )
>
> essentially, display buffer will re-use a window if Ipython shell is
> present in it, OR bring it forward into one of the windows if Ipython
> is not visible, without chaning the focus of the buffer where run-
> ipython is run.
>
> I think this should be the desireable behavior of py-execute-buffer.
> Obviously this is a hack since here display-buffer looks for the IPython
> buffer but so far it's good as a temporary kludge.
>

Is the option `t' correct WRT display-buffer?