From d2a4935039020e7c3288c53dfc09bd63a4aea9f9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 28 Jun 1996 08:08:45 +0000 Subject: [PATCH] (comint-send-input): Use insert-before-markers for all the insertions. --- lisp/comint.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/comint.el b/lisp/comint.el index 45ab7e6d4e..019fff1157 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1166,11 +1166,11 @@ Similarly for Soar, Scheme, etc." (comint-replace-by-expanded-history t) (let ((copy (buffer-substring pmark (point)))) (delete-region pmark (point)) - (insert input) + (insert-before-markers input) copy)))) (if comint-process-echoes (delete-region pmark (point)) - (insert ?\n)) + (insert-before-markers ?\n)) (if (and (funcall comint-input-filter history) (or (null comint-input-ignoredups) (not (ring-p comint-input-ring)) -- 2.39.2