diff options
| author | Richard M. Stallman | 2001-06-29 17:50:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-06-29 17:50:05 +0000 |
| commit | 546cf5b0f92557f78dbd2121fa1e7c77ea4f3c9a (patch) | |
| tree | e0abdae8c2ff76e0a2d1bdf7299acbb05545f484 | |
| parent | 442ebe984278ee7c1f2631c4444782995b9d4bc5 (diff) | |
| download | emacs-546cf5b0f92557f78dbd2121fa1e7c77ea4f3c9a.tar.gz emacs-546cf5b0f92557f78dbd2121fa1e7c77ea4f3c9a.zip | |
(widget-color-sample-face-get): Return ((foreground-color . COLOR))
instead of constructing a face.
| -rw-r--r-- | lisp/wid-edit.el | 5 |
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) |