# HG changeset patch # User Richard M. Stallman # Date 993837005 0 # Node ID c6078ee53ddf350ec6a3cdad6bdc6f922386c47d # Parent aa4a82ab70c4b686fe74631b794547a7939ff3f9 (widget-color-sample-face-get): Return ((foreground-color . COLOR)) instead of constructing a face. diff -r aa4a82ab70c4 -r c6078ee53ddf lisp/wid-edit.el --- a/lisp/wid-edit.el Fri Jun 29 17:40:38 2001 +0000 +++ b/lisp/wid-edit.el Fri Jun 29 17:50:05 2001 +0000 @@ -3400,10 +3400,7 @@ (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)