Fix customizing user options of type face

* lisp/cus-edit.el (face): Move the %f escape after the tag, because
otherwise customizing a face user option doesn't work:
custom-variable-value-create thinks that everything up until the first
":" is part of the tag, and the item widget doesn't know how to handle
the %f escape.
This commit is contained in:
Mauro Aranda 2020-11-03 10:02:51 -03:00
parent 2d4c981b21
commit bd8f4b04d5

View file

@ -4021,7 +4021,7 @@ restoring it to the state of a face that has never been customized."
(define-widget 'face 'symbol
"A Lisp face name (with sample)."
:format "%f %{%t%}: (%{sample%}) %v"
:format "%{%t%}: %f (%{sample%}) %v"
:tag "Face"
:value 'default
:sample-face-get 'widget-face-sample-face-get