run-python: Make the buffer running python current
* lisp/progmodes/python.el (run-python, python-shell-make-comint): Make the buffer running the inferior python process the current buffer (Bug#31398). * test/lisp/progmodes/python-tests.el (python-tests--bug31398): Add test.
This commit is contained in:
parent
c2caf763cf
commit
b015fb0ce3
2 changed files with 14 additions and 4 deletions
|
@ -2842,10 +2842,12 @@ process buffer for a list of commands.)"
|
|||
(y-or-n-p "Make dedicated process? ")
|
||||
(= (prefix-numeric-value current-prefix-arg) 4))
|
||||
(list (python-shell-calculate-command) nil t)))
|
||||
(get-buffer-process
|
||||
(python-shell-make-comint
|
||||
(or cmd (python-shell-calculate-command))
|
||||
(python-shell-get-process-name dedicated) show)))
|
||||
(let ((buffer
|
||||
(python-shell-make-comint
|
||||
(or cmd (python-shell-calculate-command))
|
||||
(python-shell-get-process-name dedicated) show)))
|
||||
(pop-to-buffer buffer)
|
||||
(get-buffer-process buffer)))
|
||||
|
||||
(defun run-python-internal ()
|
||||
"Run an inferior Internal Python process.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue