* gnus-xmas.el (gnus-xmas-image-type-available-p): Assume that
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 13 Feb 2002 03:29:01 +0000 (03:29 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 13 Feb 2002 03:29:01 +0000 (03:29 +0000)
image is not available if window-system is not available.

* gnus-sum.el (gnus-summary-display-make-predicate): Add unread.

lisp/ChangeLog
lisp/gnus-sum.el
lisp/gnus-xmas.el

index 5184862..7aa0d1e 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-12  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-xmas.el (gnus-xmas-image-type-available-p): Assume that
+       image is not available if window-system is not available.
+
+       * gnus-sum.el (gnus-summary-display-make-predicate): Add unread.
+
 2002-02-11  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus.el (gnus-article-unpropagated-mark-lists): Don't propagate
index 6f1c523..313645c 100644 (file)
@@ -4813,8 +4813,8 @@ If SELECT-ARTICLES, only select those articles from GROUP."
   (when (= (length display) 1)
     (setq display (car display)))
   (unless gnus-summary-display-cache
-    (dolist (elem (append (list (cons 'read 'read)
-                               (cons 'unseen 'unseen))
+    (dolist (elem (append '((unread . unread)
+                           (unseen . unseen))
                          gnus-article-mark-lists))
       (push (cons (cdr elem)
                  (gnus-byte-compile
index ca61793..e813164 100644 (file)
@@ -794,9 +794,8 @@ XEmacs compatibility workaround."
                      gnus-mailing-list-menu))
 
 (defun gnus-xmas-image-type-available-p (type)
-  (when (eq type 'pbm)
-    (setq type 'xbm))
-  (featurep type))
+  (and window-system
+       (featurep (if (eq type 'pmb) 'xbm type))))
 
 (defun gnus-xmas-create-image (file &optional type data-p &rest props)
   (let ((type (if type