# HG changeset patch # User Richard M. Stallman # Date 1018109366 0 # Node ID c9f374d3e6f367af2c29039069a1e6db5a7c8aa3 # Parent d6c61dd7b4afcfb84d10d3b8ae7c35882edc9558 (enriched-decode-foreground, enriched-decode-background): Use proper format for desired elts of `face' property. Don't test display-color-p; make the properties unconditionally. diff -r d6c61dd7b4af -r c9f374d3e6f3 lisp/enriched.el --- a/lisp/enriched.el Sat Apr 06 15:57:47 2002 +0000 +++ b/lisp/enriched.el Sat Apr 06 16:09:26 2002 +0000 @@ -432,19 +432,15 @@ (delete-char 1))) (defun enriched-decode-foreground (from to &optional color) - (if (and color (display-color-p)) - (list from to 'face (cons ':foreground color)) - (if (null color) - (message "Warning: no color specified for ") - (message "Warning: color `%s' can't be displayed" color)) + (if color + (list from to 'face (list ':foreground color)) + (message "Warning: no color specified for ") nil)) (defun enriched-decode-background (from to &optional color) - (if (and color (display-color-p)) - (list from to 'face (cons ':background color)) - (if (null color) - (message "Warning: no color specified for ") - (message "Warning: color `%s' can't be displayed" color)) + (if color + (list from to 'face (list ':background color)) + (message "Warning: no color specified for ") nil)) ;;; Handling the `display' property.