* gnus-art.el (article-display-x-face): Don't use `nreverse' when sorting gray
authoryamaoka <yamaoka>
Mon, 18 Feb 2002 06:01:45 +0000 (06:01 +0000)
committeryamaoka <yamaoka>
Mon, 18 Feb 2002 06:01:45 +0000 (06:01 +0000)
 X-Faces.

* nnheader.el (std11-field-value): Fix regexp.

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

index b130ebf..11bfc51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-02-18  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * lisp/nnheader.el (std11-field-value): Fix regexp.
+
 2002-02-15  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * lisp/gnus-art.el (gnus-treat-display-grey-xface): Default to nil
index fe540b5..b8401d4 100644 (file)
@@ -2061,13 +2061,12 @@ unfolded."
                      (if (match-beginning 2)
                          (progn
                            (setq grey t)
-                           (push (cons (string-to-number (match-string 2))
+                           (push (cons (- (string-to-number (match-string 2)))
                                        (mail-header-field-value))
                                  x-faces))
                        (push (cons 0 (mail-header-field-value)) x-faces)))
                    (dolist (x-face (prog1
-                                       (nreverse (sort x-faces
-                                                       'car-less-than-car))
+                                       (sort x-faces 'car-less-than-car)
                                      (setq x-faces nil)))
                      (push (cdr x-face) x-faces)))
                (while (gnus-article-goto-header "X-Face")
index 22c9cee..f759abe 100644 (file)
@@ -384,7 +384,7 @@ If no name can be extracted, FULL-NAME will be nil."
            (std11-extract-addresses-components string)))
 
   ;; Should keep track of `rfc2047-field-value' in rfc2047.el.
-  (defun-maybe std11-field-value (&optional dont-include-last-newline)
+  (defun std11-field-value (&optional dont-include-last-newline)
     "Return the value of the field at point.  If the optional argument is
 given, the return value will not contain the last newline."
     (let ((begin (point))
@@ -394,7 +394,7 @@ given, the return value will not contain the last newline."
       (unless (eobp)
        (while (and (memq (char-after) '(?\t ?\ ))
                    (zerop (forward-line -1))))
-       (when (looking-at ".+:[\t\n ]+")
+       (when (looking-at "[^\t\n ]+:[\t\n ]+")
          (goto-char (setq start (match-end 0)))
          (forward-line 1)
          (while (and (memq (char-after) '(?\t ?\ ))