]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't test X colors unless using X.
authorKarl Heuer <kwzh@gnu.org>
Sat, 20 Jul 1996 06:08:32 +0000 (06:08 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sat, 20 Jul 1996 06:08:32 +0000 (06:08 +0000)
lisp/gnus-cus.el

index ee78453cd8d88162ad19273e4351c4a172edd78d..a83d578bec18fe241b181fbf5c6bb23c44a28c48 100644 (file)
@@ -45,7 +45,9 @@
 (defvar gnus-face-dark-name-list
   (list
    ;; Not all servers have dark blue in rgb.txt.
-   (if (x-color-defined-p "dark blue") "dark blue" "royal blue")
+   (if (and (eq window-system 'x) (x-color-defined-p "dark blue"))
+       "dark blue"
+     "royal blue")
    "firebrick" "dark green" "OrangeRed" 
    "dark khaki" "dark violet" "SteelBlue4"))
 ; CornflowerBlue SeaGreen OrangeRed SteelBlue4 DeepPink3
@@ -640,7 +642,8 @@ ticked: The number of ticked articles.")
               ((and mailp (eq level 3)) .
                ,(custom-face-lookup
                  ;; Not all servers have dark magenta in rgb.txt.
-                 (if (x-color-defined-p "dark magenta")
+                 (if (and (eq window-system 'x)
+                          (x-color-defined-p "dark magenta"))
                      "dark magenta"
                    "maroon")
                  nil nil t))