changeset 18814:9b92c85d0dc2

(mail-mode-auto-fill): Use insert-before-markers.
author Richard M. Stallman <rms@gnu.org>
date Tue, 15 Jul 1997 19:34:10 +0000
parents 498c1590b4a8
children 4c16f9e92a6e
files lisp/mail/sendmail.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/sendmail.el	Tue Jul 15 19:22:53 1997 +0000
+++ b/lisp/mail/sendmail.el	Tue Jul 15 19:34:10 1997 +0000
@@ -371,7 +371,9 @@
 	    (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)))