* message.el (message-fill-field): Return point.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 18 May 2004 13:49:53 +0000 (13:49 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 18 May 2004 13:49:53 +0000 (13:49 +0000)
(message-generate-headers): Go to end of field.

lisp/ChangeLog
lisp/message.el

index 575403e..ae5b3a6 100644 (file)
@@ -7,6 +7,9 @@
 
 2004-05-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * message.el (message-fill-field): Return point.
+       (message-generate-headers): Go to end of field.
+
        * gnus-start.el (gnus-get-unread-articles-in-group): Don't do
        stuff for non-living groups.
 
index 639e1a1..0506966 100644 (file)
@@ -5030,9 +5030,9 @@ Headers already prepared in the buffer are not modified."
                      (if formatter
                          (funcall formatter header value)
                        (insert header-string ": " value))
-                     (message-fill-field)
+                     (goto-char (message-fill-field))
                      ;; We check whether the value was ended by a
-                     ;; newline.  If now, we insert one.
+                     ;; newline.  If not, we insert one.
                      (unless (bolp)
                        (insert "\n"))
                      (forward-line -1)))
@@ -5150,7 +5150,8 @@ If the current line has `message-yank-prefix', insert it on the new line."
       (message-narrow-to-field)
       (let ((field-name (message-field-name)))
        (funcall (or (cadr (assq field-name message-field-fillers))
-                    'message-fill-field-general))))))
+                    'message-fill-field-general)))
+      (point-max))))
 
 (defun message-fill-field-address ()
   (while (not (eobp))