]> git.eshelyaron.com Git - emacs.git/commitdiff
Make octave-send-region deactivate the region
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2021 08:45:49 +0000 (09:45 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2021 08:45:49 +0000 (09:45 +0100)
* lisp/progmodes/octave.el (octave-send-region): Deactivate mark
after sending the region (bug#32282), since this is how these commands
usually work.

lisp/progmodes/octave.el

index c37bb1c7112e42a8cfaaf116c068054f7cb50bea..cb44b72fb44ada018b558d2c3ee70cdd23f208a4 100644 (file)
@@ -1516,7 +1516,8 @@ current buffer file unless called with a prefix arg \\[universal-argument]."
       ;; https://lists.gnu.org/r/emacs-devel/2013-10/msg00095.html
       (compilation-forget-errors)
       (insert-before-markers string "\n")
-      (comint-send-string proc (concat string "\n"))))
+      (comint-send-string proc (concat string "\n")))
+    (deactivate-mark))
   (if octave-send-show-buffer
       (display-buffer inferior-octave-buffer)))