diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-05 09:45:49 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-05 09:45:49 +0100 |
commit | f06acf752a27b0ab34eae5e2342579863ede3b2f (patch) | |
tree | 7283074c721ebf54ae08afe1fd1959fbd1ff9866 /lisp/progmodes/octave.el | |
parent | ff701ce2b261acce1dfcd1fe137268d87d5eab35 (diff) | |
download | emacs-f06acf752a27b0ab34eae5e2342579863ede3b2f.tar.gz emacs-f06acf752a27b0ab34eae5e2342579863ede3b2f.tar.bz2 emacs-f06acf752a27b0ab34eae5e2342579863ede3b2f.zip |
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.
Diffstat (limited to 'lisp/progmodes/octave.el')
-rw-r--r-- | lisp/progmodes/octave.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index c37bb1c7112..cb44b72fb44 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))) |