1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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.
This commit is contained in:
Lars Ingebrigtsen 2021-02-05 09:45:49 +01:00
parent ff701ce2b2
commit f06acf752a

View 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)))