Fix last change in tempo.el

* lisp/tempo.el: Set marker type for tempo-region-start to
move when text is inserted at its position.  This prevents
the template from inserting text into the region.  (Bug#68185)
This commit is contained in:
Morgan Willcock 2023-12-31 20:47:17 +00:00 committed by Eli Zaretskii
parent 5765cc3a5a
commit d69fb6dab2

View file

@ -198,6 +198,10 @@ This is an abnormal hook where the functions are called with one argument
(defvar-local tempo-region-start (make-marker)
"Region start when inserting around the region.")
;; Insertion by the template at the region start position should move
;; the marker to preserve the original region contents.
(set-marker-insertion-type tempo-region-start t)
(defvar-local tempo-region-stop (make-marker)
"Region stop when inserting around the region.")