1
0
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:
Richard M. Stallman 2001-06-29 17:50:05 +00:00
parent 442ebe9842
commit 546cf5b0f9

View File

@ -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)