From: Richard M. Stallman Date: Fri, 28 Jun 1996 08:08:45 +0000 (+0000) Subject: (comint-send-input): Use insert-before-markers for all the insertions. X-Git-Tag: emacs-19.34~321 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/d2a4935039020e7c3288c53dfc09bd63a4aea9f9 (comint-send-input): Use insert-before-markers for all the insertions. --- 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))