Deactivate region in `C-c C-r' in python-mode

* lisp/progmodes/python.el (python-shell-send-region): Deactivate
mark after executing (bug#28789).  This is how this command worked
in Emacs 24, apparently.
This commit is contained in:
Lars Ingebrigtsen 2021-02-04 18:24:28 +01:00
parent a304b22bc9
commit 3bf21f52b6

View file

@ -3273,7 +3273,8 @@ process running; defaults to t when called interactively."
;; lines have been removed/added.
(with-current-buffer (process-buffer process)
(compilation-forget-errors))
(python-shell-send-string string process)))
(python-shell-send-string string process)
(deactivate-mark)))
(defun python-shell-send-statement (&optional send-main msg)
"Send the statement at point to inferior Python process.