+2009-01-27 Glenn Morris <rgm@gnu.org>
+
+ * mail/rmail.el (rmail-copy-headers): Doc fix. Leave point at the end
+ of the headers in the full header case. (Bug#2073)
+
2009-01-27 Kenichi Handa <handa@m17n.org>
* mail/rmail.el (rmail-get-coding-system): Re-search
those header fields whose names match that regexp. Otherwise,
copy all header fields whose names do not match
`rmail-ignored-headers' (unless they also match
-`rmail-nonignored-headers')."
+`rmail-nonignored-headers'). Leaves point in the message viewer
+buffer at the end of the headers."
(let ((header-start-regexp "\n[^ \t]")
lim)
(with-current-buffer rmail-buffer
(cond
;; Handle the case where all headers should be copied.
((eq rmail-header-style 'full)
- (prepend-to-buffer rmail-view-buffer beg (point-max)))
- ;; Handle the case where the headers matching the diplayed
+ (prepend-to-buffer rmail-view-buffer beg (point-max))
+ ;; rmail-show-message expects this function to leave point
+ ;; at the end of the headers.
+ (with-current-buffer rmail-view-buffer
+ (search-forward "\n\n" nil t)))
+ ;; Handle the case where the headers matching the displayed
;; headers regexp should be copied.
((and rmail-displayed-headers (null ignored-headers))
(while (not (eobp))