mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(message-narrow-to-headers-or-head): Ignore mail-header-separator in
the body.
This commit is contained in:
parent
3938661c20
commit
d05b3cfd61
1 changed files with 6 additions and 8 deletions
|
|
@ -2225,14 +2225,12 @@ Point is left at the beginning of the narrowed-to region."
|
|||
(widen)
|
||||
(narrow-to-region
|
||||
(goto-char (point-min))
|
||||
(cond
|
||||
((re-search-forward
|
||||
(concat "^" (regexp-quote mail-header-separator) "\n") nil t)
|
||||
(match-beginning 0))
|
||||
((search-forward "\n\n" nil t)
|
||||
(1- (point)))
|
||||
(t
|
||||
(point-max))))
|
||||
(if (re-search-forward (concat "\\(\n\\)\n\\|^\\("
|
||||
(regexp-quote mail-header-separator)
|
||||
"\n\\)")
|
||||
nil t)
|
||||
(or (match-end 1) (match-beginning 2))
|
||||
(point-max)))
|
||||
(goto-char (point-min)))
|
||||
|
||||
(defun message-news-p ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue