2002-04-06 Richard M. Stallman <rms@gnu.org>
+ * enriched.el (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.
+
* progmodes/compile.el (compilation-error-regexp-alist):
New alternatives for FILE:LINE.COL and for ranges of columns and lines.
(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 <x-color>")
- (message "Warning: color `%s' can't be displayed" color))
+ (if color
+ (list from to 'face (list ':foreground color))
+ (message "Warning: no color specified for <x-color>")
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 <x-bg-color>")
- (message "Warning: color `%s' can't be displayed" color))
+ (if color
+ (list from to 'face (list ':background color))
+ (message "Warning: no color specified for <x-bg-color>")
nil))
\f
;;; Handling the `display' property.