aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-05 06:33:01 +0000
committerRichard M. Stallman1995-08-05 06:33:01 +0000
commitf1d71b2f75923b697f59f2873f931d68979df8f7 (patch)
tree3d4bf4377ed12db90ed764b05fe170ab5c020b42
parent68002b5f39ab3a5b3060d7f36f987af7df1bddff (diff)
downloademacs-f1d71b2f75923b697f59f2873f931d68979df8f7.tar.gz
emacs-f1d71b2f75923b697f59f2873f931d68979df8f7.zip
(set-face-background): When using face-color-supported-p,
specify foreground, not background.
-rw-r--r--lisp/faces.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 438b148f46d..368d44f8fa0 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -150,7 +150,11 @@ in that frame; otherwise change each frame."
150 ;; For a specific frame, use gray stipple instead of gray color 150 ;; For a specific frame, use gray stipple instead of gray color
151 ;; if the display does not support a gray color. 151 ;; if the display does not support a gray color.
152 (if (and frame (not (eq frame t)) color 152 (if (and frame (not (eq frame t)) color
153 (not (face-color-supported-p frame color t))) 153 ;; Check for supportedness for foreground, not for background!
154 ;; face-color-supported-p is smart enough to know
155 ;; that grays are "supported" as background
156 ;; because we are supposed to use stipple for them!
157 (not (face-color-supported-p frame color nil)))
154 (set-face-stipple face face-default-stipple frame) 158 (set-face-stipple face face-default-stipple frame)
155 (if (null frame) 159 (if (null frame)
156 (let ((frames (frame-list))) 160 (let ((frames (frame-list)))