+2001-10-16 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+ Patch by Oliver Scholz <oscholz@my.gnus.org>.
+
+ * gnus-draft.el (gnus-draft-edit-message): Add text property
+ `field' with value `header' to message headers.
+ * message.el (message-setup-1): Really add text property to all of
+ the header, not just part of it.
+
2001-09-04 21:42:23 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-group-sort-by-server): Use it.
(save-excursion
(save-restriction
(message-narrow-to-headers)
- (message-remove-header "date")))
+ (message-remove-header "date")
+ (put-text-property (point-min) (point-max) 'field 'header)))
(message-save-drafts)
(let ((gnus-verbose-backends nil))
(gnus-request-expire-articles (list article) group t))
(when message-default-headers
(insert message-default-headers)
(or (bolp) (insert ?\n)))
- (put-text-property (point-min) (point) 'field 'header)
(put-text-property
(point)
(progn
(set-buffer-modified-p nil)
(setq buffer-undo-list nil)
(run-hooks 'message-setup-hook)
+ (save-restriction
+ (message-narrow-to-headers)
+ (put-text-property (point-min) (point-max) 'field 'header))
(message-position-point)
(undo-boundary))