summaryrefslogtreecommitdiff
path: root/lisp/enriched.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/enriched.el')
-rw-r--r--lisp/enriched.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el
index a7f3ad6cdf5..08c0cec8955 100644
--- a/lisp/enriched.el
+++ b/lisp/enriched.el
@@ -443,7 +443,7 @@ Return value is \(begin end name positive-p), or nil if none was found."
(cond ((null color)
(message "Warning: no color specified for <x-color>"))
((internal-find-face face))
- ((and window-system (facemenu-get-face face)))
+ ((and (display-color-p) (facemenu-get-face face)))
((make-face face)
(message "Warning: color `%s' can't be displayed" color)))
(list from to 'face face)))
@@ -453,7 +453,7 @@ Return value is \(begin end name positive-p), or nil if none was found."
(cond ((null color)
(message "Warning: no color specified for <x-bg-color>"))
((internal-find-face face))
- ((and window-system (facemenu-get-face face)))
+ ((and (display-color-p) (facemenu-get-face face)))
((make-face face)
(message "Warning: color `%s' can't be displayed" color)))
(list from to 'face face)))