* lisp/faces.el (face-spec-set-match-display): Don't match toolkit
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 Apr 2011 17:57:07 +0000 (19:57 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 Apr 2011 17:57:07 +0000 (19:57 +0200)
options on terminal frames.

lisp/ChangeLog
lisp/faces.el

index 71c7eed..d0f0879 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-30  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * faces.el (face-spec-set-match-display): Don't match toolkit
+       options on terminal frames.
+
 2011-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/pascal.el: Use lexical binding.
index e7cfa20..3fb8bc8 100644 (file)
@@ -1451,18 +1451,18 @@ If FRAME is nil, the current FRAME is used."
                             ;; of supported colors, and all defface's
                             ;; are changed to look at number of colors
                             ;; instead of (type graphic) etc.
-                            (and (null (window-system frame))
-                                 (memq 'tty options))
-                            (and (memq 'motif options)
-                                 (featurep 'motif))
-                            (and (memq 'gtk options)
-                                 (featurep 'gtk))
-                            (and (memq 'lucid options)
-                                 (featurep 'x-toolkit)
-                                 (not (featurep 'motif))
-                                 (not (featurep 'gtk)))
-                            (and (memq 'x-toolkit options)
-                                 (featurep 'x-toolkit))))
+                            (if (null (window-system frame))
+                                (memq 'tty options)
+                              (or (and (memq 'motif options)
+                                       (featurep 'motif))
+                                  (and (memq 'gtk options)
+                                       (featurep 'gtk))
+                                  (and (memq 'lucid options)
+                                       (featurep 'x-toolkit)
+                                       (not (featurep 'motif))
+                                       (not (featurep 'gtk)))
+                                  (and (memq 'x-toolkit options)
+                                       (featurep 'x-toolkit))))))
                        ((eq req 'min-colors)
                         (>= (display-color-cells frame) (car options)))
                        ((eq req 'class)