aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a3821dcfe0a..c20c40e7643 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."
3400 (widget-value widget) 3400 (widget-value widget)
3401 (error (widget-get widget :value))))) 3401 (error (widget-get widget :value)))))
3402 (if (color-defined-p value) 3402 (if (color-defined-p value)
3403 (let ((symbol (intern (concat "fg:" value)))) 3403 (list (cons 'foreground-color value))
3404 (condition-case nil
3405 (facemenu-get-face symbol)
3406 (error 'default)))
3407 'default))) 3404 'default)))
3408 3405
3409(defun widget-color-action (widget &optional event) 3406(defun widget-color-action (widget &optional event)