* lisp/cus-edit.el (cus--face-link): Link to the current value of the
widget, rather than to the widget's value upon creation (bug#44154).
(custom-face-state-set widget))))))
(defun cus--face-link (widget _format)
- (let ((face (intern (widget-get widget :value))))
- (widget-create-child-and-convert
- widget 'face-link
- :button-face 'link
- :tag "link"
- :action (lambda (&rest _x)
- (customize-face face)))))
+ (widget-create-child-and-convert
+ widget 'face-link
+ :button-face 'link
+ :tag "link"
+ :action (lambda (&rest _x)
+ (customize-face (widget-value widget)))))
(defvar custom-face-menu nil
"If non-nil, an alist of actions for the `custom-face' widget.