Commit 04c26901 authored by Dave Love's avatar Dave Love
Browse files

(enriched-decode-foreground): Use display-color-p.

(enriched-decode-background): Likewise.
parent e1cff360
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment