From: Richard M. Stallman Date: Tue, 15 Jul 1997 19:34:10 +0000 (+0000) Subject: (mail-mode-auto-fill): Use insert-before-markers. X-Git-Tag: emacs-20.1~1132 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=28afe1992dc4d7a105406ad6081d3766cfb9996f;p=emacs.git (mail-mode-auto-fill): Use insert-before-markers. --- 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)))