diff options
author | Dave Love <fx@gnu.org> | 2000-03-12 15:25:35 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-03-12 15:25:35 +0000 |
commit | 04c26901e2e10b145ca7facb7589a8192c56e280 (patch) | |
tree | 3dc5948b98ba077b9c6f4b428702a70cc3d2bb7e /lisp/enriched.el | |
parent | e1cff3605889d0a61994299de6ab0b79ad152427 (diff) | |
download | emacs-04c26901e2e10b145ca7facb7589a8192c56e280.tar.gz |
(enriched-decode-foreground): Use display-color-p.
(enriched-decode-background): Likewise.
Diffstat (limited to 'lisp/enriched.el')
-rw-r--r-- | lisp/enriched.el | 4 |
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))) |