Revision: emacs@sv.gnu.org/emacs--devo--0--patch-94
authorMiles Bader <miles@gnu.org>
Fri, 17 Feb 2006 02:38:14 +0000 (02:38 +0000)
committerMiles Bader <miles@gnu.org>
Fri, 17 Feb 2006 02:38:14 +0000 (02:38 +0000)
Merge from gnus--rel--5.10

Patches applied:

 * gnus--rel--5.10  (patch 35-36)

   - Merge from emacs--devo--0
   - Update from CVS

lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 4ac3982..903be00 100644 (file)
@@ -7,6 +7,11 @@
 
        * gnus-cus.el: Revert 2005-10-17 change.
 
+2006-02-17  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (article-strip-banner): Call
+       article-really-strip-banner only when the regexp match is made.
+
 2006-02-16  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (article-strip-banner): Use
index 0d9b5f4..0c9cb18 100644 (file)
@@ -2611,19 +2611,19 @@ always hide."
          ;; Note that the From header is decoded here, so it is
          ;; required that the *-extract-address-components function
          ;; supports non-ASCII text.
-         (article-really-strip-banner
-          (let ((from (save-restriction
-                        (widen)
-                        (article-narrow-to-head)
-                        (mail-fetch-field "from"))))
-            (when (and from
-                       (setq from
-                             (cadr (funcall gnus-extract-address-components
-                                            from))))
-              (catch 'found
-                (dolist (pair gnus-article-address-banner-alist)
-                  (when (string-match (car pair) from)
-                    (throw 'found (cdr pair)))))))))))))
+         (let ((from (save-restriction
+                       (widen)
+                       (article-narrow-to-head)
+                       (mail-fetch-field "from"))))
+           (when (and from
+                      (setq from
+                            (cadr (funcall gnus-extract-address-components
+                                           from))))
+             (catch 'found
+               (dolist (pair gnus-article-address-banner-alist)
+                 (when (string-match (car pair) from)
+                   (throw 'found
+                          (article-really-strip-banner (cdr pair)))))))))))))
 
 (defun article-really-strip-banner (banner)
   "Strip the banner specified by the argument."