From 28afe1992dc4d7a105406ad6081d3766cfb9996f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 15 Jul 1997 19:34:10 +0000 Subject: [PATCH] (mail-mode-auto-fill): Use insert-before-markers. --- lisp/mail/sendmail.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 712974be01b..f4c75e020f7 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -371,7 +371,9 @@ If within the headers, this makes the new lines into continuation lines." (save-excursion (beginning-of-line) (while (not (eq (point) old-line-start)) - (insert " ") + ;; Use insert-before-markers in case we're inserting + ;; before the saved value of point (which is common). + (insert-before-markers " ") (forward-line -1)) t))) (do-auto-fill))) -- 2.39.2