+2002-03-24 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * facemenu.el (facemenu-get-face): Remove unised variable
+ `foreground'.
+
+ * enriched.el (enriched-face-ans): Support FACE of the form
+ (:foreground COLOR) and (:background COLOR).
+ (enriched-decode-foreground, enriched-decode-background): Set the
+ fore- and background colors of the faces we create, since facemenu
+ doesn't.
+
2002-03-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
* mwheel.el (mouse-wheel-mode): Use the result of
(list (list "x-color" (cdr face))))
((and (consp face) (eq (car face) 'background-color))
(list (list "x-bg-color" (cdr face))))
+ ((and (listp face) (eq (car face) :foreground))
+ (list (list "x-color" (cadr face))))
+ ((and (listp face) (eq (car face) :background))
+ (list (list "x-bg-color" (cadr face))))
((listp face)
(apply 'append (mapcar 'enriched-face-ans face)))
((string-match "^fg:" (symbol-name face))
(cond ((null color)
(message "Warning: no color specified for <x-color>"))
((facep face))
- ((and (display-color-p) (facemenu-get-face face)))
+ ((and (display-color-p) (facemenu-get-face face))
+ (set-face-foreground face color))
((make-face face)
(message "Warning: color `%s' can't be displayed" color)))
(list from to 'face face)))
(cond ((null color)
(message "Warning: no color specified for <x-bg-color>"))
((facep face))
- ((and (display-color-p) (facemenu-get-face face)))
+ ((and (display-color-p) (facemenu-get-face face))
+ (set-face-background face color))
((make-face face)
(message "Warning: color `%s' can't be displayed" color)))
(list from to 'face face)))