mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(widget-color-sample-face-get): Return ((foreground-color . COLOR))
instead of constructing a face.
This commit is contained in:
parent
442ebe9842
commit
546cf5b0f9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user