it should go to the beginning of the header after narrowing.
2002-01-08 Katsumi Yamaoka <yamaoka@jpl.org>
- * lisp/nnheader.el (std11-extract-addresses-components): Protect
- against nil argument.
+ * lisp/nnheader.el (mail-narrow-to-head): Copy from ietf-drums.el;
+ it should go to the beginning of the header after narrowing.
+ (std11-extract-addresses-components): Protect against nil argument.
2002-01-08 Katsumi Yamaoka <yamaoka@jpl.org>
(defalias 'mail-header-narrow-to-field 'std11-narrow-to-field)
- (defalias 'mail-narrow-to-head 'std11-narrow-to-header)
+ (defun mail-narrow-to-head ()
+ "Narrow to the header section in the current buffer."
+ (narrow-to-region
+ (goto-char (point-min))
+ (if (re-search-forward "^\r?$" nil 1)
+ (match-beginning 0)
+ (point-max)))
+ (goto-char (point-min)))
(defun-maybe std11-fold-field ()
"Fold the current line."