emacs-diffs
[Top][All Lists]
Advanced

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

master d69fb6dab28: Fix last change in tempo.el


From: Eli Zaretskii
Subject: master d69fb6dab28: Fix last change in tempo.el
Date: Thu, 4 Jan 2024 06:22:43 -0500 (EST)

branch: master
commit d69fb6dab28e55447516341cf28f1b6d06937ad6
Author: Morgan Willcock <morgan@ice9.digital>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)
---
 lisp/tempo.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/tempo.el b/lisp/tempo.el
index f32313d80d0..513e778e4ef 100644
--- a/lisp/tempo.el
+++ b/lisp/tempo.el
@@ -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.")
 



reply via email to

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