emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f06acf7: Make octave-send-region deactivate the region


From: Lars Ingebrigtsen
Subject: master f06acf7: Make octave-send-region deactivate the region
Date: Fri, 5 Feb 2021 03:45:57 -0500 (EST)

branch: master
commit f06acf752a27b0ab34eae5e2342579863ede3b2f
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make octave-send-region deactivate the region
    
    * 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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index c37bb1c..cb44b72 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]