]> git.eshelyaron.com Git - emacs.git/commitdiff
Deactivate region in `C-c C-r' in python-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2021 17:24:28 +0000 (18:24 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2021 17:24:34 +0000 (18:24 +0100)
* lisp/progmodes/python.el (python-shell-send-region): Deactivate
mark after executing (bug#28789).  This is how this command worked
in Emacs 24, apparently.

lisp/progmodes/python.el

index d6c0a4d1dbff34dd77ff35f5b2a5846aabb83230..afb96974b17a4f243b608a8e7f93af249ac38bb9 100644 (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.