aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2001-06-29 17:50:05 +0000
committerRichard M. Stallman <[email protected]>2001-06-29 17:50:05 +0000
commit546cf5b0f92557f78dbd2121fa1e7c77ea4f3c9a (patch)
treee0abdae8c2ff76e0a2d1bdf7299acbb05545f484 /lisp
parent442ebe984278ee7c1f2631c4444782995b9d4bc5 (diff)
(widget-color-sample-face-get): Return ((foreground-color . COLOR))
instead of constructing a face.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/wid-edit.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index a3821dcfe0..c20c40e764 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -3400,10 +3400,7 @@ To use this type, you must define :match or :match-alternatives."
(widget-value widget)
(error (widget-get widget :value)))))
(if (color-defined-p value)
- (let ((symbol (intern (concat "fg:" value))))
- (condition-case nil
- (facemenu-get-face symbol)
- (error 'default)))
+ (list (cons 'foreground-color value))
'default)))
(defun widget-color-action (widget &optional event)