(delete-char 1)))
(defun enriched-decode-foreground (from to &optional color)
- (if (and color (display-color-p) (facemenu-get-face face))
- (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) (facemenu-get-face face))
- (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.