Files
emacs/test/lisp
Kévin Le Gouguec 9bd3f78645 Make `M-x run-python' select the window again
Interactively, we want M-x run-python to focus the interpreter buffer.
The previous code failed in two ways:

- the call to 'display-buffer' was not reached if an interpreter
  was already running,

- set-buffer is ineffectual if the interpreter's window is not
  selected: once Emacs returns to the command loop, the current buffer
  will revert back to what the selected window contains.

* lisp/progmodes/python.el (python-shell-make-comint): Handle the SHOW
argument regardless of whether an interpreter buffer exists, and use
pop-to-buffer to select the window.
(run-python): Delegate buffer management to
'python-shell-make-comint'.

* test/lisp/progmodes/python-tests.el
(python-tests--run-python-selects-window): Rename from
'python-tests--bug31398', and adjust assertions (bug#52380).
2021-12-13 05:17:00 +01:00
..
2021-11-12 13:59:58 +01:00
2021-11-24 16:54:59 +01:00
2021-09-26 20:45:07 +02:00
2021-08-20 02:32:02 +02:00
2021-08-09 14:14:37 +02:00
2021-08-06 13:29:31 +02:00
2021-05-16 15:50:41 +02:00