aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2011-04-30 19:57:07 +0200
committerAndreas Schwab2011-04-30 19:57:07 +0200
commitdcb79f208ab9e2e1e8e0d4e9810ca25c1a660eaf (patch)
treed7561bf84dbb9681308b0f2ddf8e8d99e734fc02
parentcb79b8c0517a92f93539db030db694b293fd8706 (diff)
downloademacs-dcb79f208ab9e2e1e8e0d4e9810ca25c1a660eaf.tar.gz
emacs-dcb79f208ab9e2e1e8e0d4e9810ca25c1a660eaf.zip
* lisp/faces.el (face-spec-set-match-display): Don't match toolkit
options on terminal frames.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/faces.el24
2 files changed, 17 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 71c7eedb335..d0f08795ed3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-04-30 Andreas Schwab <schwab@linux-m68k.org>
2
3 * faces.el (face-spec-set-match-display): Don't match toolkit
4 options on terminal frames.
5
12011-04-29 Stefan Monnier <monnier@iro.umontreal.ca> 62011-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * progmodes/pascal.el: Use lexical binding. 8 * progmodes/pascal.el: Use lexical binding.
diff --git a/lisp/faces.el b/lisp/faces.el
index e7cfa200602..3fb8bc80931 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1451,18 +1451,18 @@ If FRAME is nil, the current FRAME is used."
1451 ;; of supported colors, and all defface's 1451 ;; of supported colors, and all defface's
1452 ;; are changed to look at number of colors 1452 ;; are changed to look at number of colors
1453 ;; instead of (type graphic) etc. 1453 ;; instead of (type graphic) etc.
1454 (and (null (window-system frame)) 1454 (if (null (window-system frame))
1455 (memq 'tty options)) 1455 (memq 'tty options)
1456 (and (memq 'motif options) 1456 (or (and (memq 'motif options)
1457 (featurep 'motif)) 1457 (featurep 'motif))
1458 (and (memq 'gtk options) 1458 (and (memq 'gtk options)
1459 (featurep 'gtk)) 1459 (featurep 'gtk))
1460 (and (memq 'lucid options) 1460 (and (memq 'lucid options)
1461 (featurep 'x-toolkit) 1461 (featurep 'x-toolkit)
1462 (not (featurep 'motif)) 1462 (not (featurep 'motif))
1463 (not (featurep 'gtk))) 1463 (not (featurep 'gtk)))
1464 (and (memq 'x-toolkit options) 1464 (and (memq 'x-toolkit options)
1465 (featurep 'x-toolkit)))) 1465 (featurep 'x-toolkit))))))
1466 ((eq req 'min-colors) 1466 ((eq req 'min-colors)
1467 (>= (display-color-cells frame) (car options))) 1467 (>= (display-color-cells frame) (car options)))
1468 ((eq req 'class) 1468 ((eq req 'class)