Commit d05b3cfd authored by Chong Yidong's avatar Chong Yidong
Browse files

(message-narrow-to-headers-or-head): Ignore mail-header-separator in

the body.
parent 3938661c
...@@ -2225,14 +2225,12 @@ Point is left at the beginning of the narrowed-to region." ...@@ -2225,14 +2225,12 @@ Point is left at the beginning of the narrowed-to region."
(widen) (widen)
(narrow-to-region (narrow-to-region
(goto-char (point-min)) (goto-char (point-min))
(cond (if (re-search-forward (concat "\\(\n\\)\n\\|^\\("
((re-search-forward (regexp-quote mail-header-separator)
(concat "^" (regexp-quote mail-header-separator) "\n") nil t) "\n\\)")
(match-beginning 0)) nil t)
((search-forward "\n\n" nil t) (or (match-end 1) (match-beginning 2))
(1- (point))) (point-max)))
(t
(point-max))))
(goto-char (point-min))) (goto-char (point-min)))
(defun message-news-p () (defun message-news-p ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment