aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-15 19:34:10 +0000
committerRichard M. Stallman1997-07-15 19:34:10 +0000
commit28afe1992dc4d7a105406ad6081d3766cfb9996f (patch)
treefeb483309df4805c6c26b89fea042b1fb2a9395a
parente744155a80ab75b63876694a615f07d528e5da11 (diff)
downloademacs-28afe1992dc4d7a105406ad6081d3766cfb9996f.tar.gz
emacs-28afe1992dc4d7a105406ad6081d3766cfb9996f.zip
(mail-mode-auto-fill): Use insert-before-markers.
-rw-r--r--lisp/mail/sendmail.el4
1 files changed, 3 insertions, 1 deletions
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."
371 (save-excursion 371 (save-excursion
372 (beginning-of-line) 372 (beginning-of-line)
373 (while (not (eq (point) old-line-start)) 373 (while (not (eq (point) old-line-start))
374 (insert " ") 374 ;; Use insert-before-markers in case we're inserting
375 ;; before the saved value of point (which is common).
376 (insert-before-markers " ")
375 (forward-line -1)) 377 (forward-line -1))
376 t))) 378 t)))
377 (do-auto-fill))) 379 (do-auto-fill)))