]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge from gnus--rel--5.10
authorMiles Bader <miles@gnu.org>
Thu, 24 May 2007 20:18:14 +0000 (20:18 +0000)
committerMiles Bader <miles@gnu.org>
Thu, 24 May 2007 20:18:14 +0000 (20:18 +0000)
Patches applied:

 * gnus--rel--5.10  (patch 222-223)

   - Update from CVS

2007-05-24  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/message.el (message-narrow-to-headers-or-head): Ignore
   mail-header-separator in the body.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-768

lisp/gnus/ChangeLog
lisp/gnus/message.el

index e605ed51193f7d0a1a015e2cbd030d144a49c27f..9f4df39957f61eb4b119ad3a0f1812a33c928402 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-24  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * message.el (message-narrow-to-headers-or-head): Ignore
+       mail-header-separator in the body.
+
 2007-05-10  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * gnus-art.el (gnus-article-mode): Fix comment about displaying
index baf98611308bef9168745b7092426191fec521e1..432bd69b67fcfdd54233381571054584d0993ea6 100644 (file)
@@ -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 ()