X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fcus-edit.el;h=efe6ffb867958994c4ebebee4b1f969b018657ca;hb=fa496b57b20baf7d0d75c0248c82aa40ce7bab0b;hp=f7ebcea2fc4a12f680ca0bd4475be599609023b1;hpb=77dcef404dc78635f6ffa8f71a803d2bc7cc8921;p=chise%2Fxemacs-chise.git diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index f7ebcea..efe6ffb 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -2288,12 +2288,7 @@ Match frames with dark backgrounds") (unless (widget-get widget :custom-form) (widget-put widget :custom-form custom-face-default-form)) (let* ((symbol (widget-value widget)) - (spec (or (get symbol 'customized-face) - (get symbol 'saved-face) - (get symbol 'face-defface-spec) - ;; Attempt to construct it. - (list (list t (face-custom-attributes-get - symbol (selected-frame)))))) + (spec (custom-face-get-spec symbol)) (form (widget-get widget :custom-form)) (indent (widget-get widget :indent)) (edit (widget-create-child-and-convert @@ -2392,7 +2387,7 @@ Optional EVENT is the location for the menu." (child (car (widget-get widget :children))) (value (widget-value child))) (put symbol 'customized-face value) - (face-spec-set symbol value) + (face-spec-set symbol value nil '(custom)) (custom-face-state-set widget) (custom-redraw-magic widget))) @@ -2401,7 +2396,7 @@ Optional EVENT is the location for the menu." (let* ((symbol (widget-value widget)) (child (car (widget-get widget :children))) (value (widget-value child))) - (face-spec-set symbol value) + (face-spec-set symbol value nil '(custom)) (put symbol 'saved-face value) (put symbol 'customized-face nil) (custom-save-all) @@ -2416,7 +2411,7 @@ Optional EVENT is the location for the menu." (unless value (signal 'error (list "No saved value for this face" symbol))) (put symbol 'customized-face nil) - (face-spec-set symbol value) + (face-spec-set symbol value nil '(custom)) (widget-value-set child value) (custom-face-state-set widget) (custom-redraw-magic widget))) @@ -2432,7 +2427,7 @@ Optional EVENT is the location for the menu." (when (get symbol 'saved-face) (put symbol 'saved-face nil) (custom-save-all)) - (face-spec-set symbol value) + (face-spec-set symbol value nil '(custom)) (widget-value-set child value) (custom-face-state-set widget) (custom-redraw-magic widget))) @@ -3017,7 +3012,7 @@ Leave point at the location of the call, or after the last expression." (not (get symbol 'force-value))))))) (when value (princ "\n '(") - (princ symbol) + (prin1 symbol) (princ " ") (prin1 (car value)) (cond (requests @@ -3058,7 +3053,7 @@ Leave point at the location of the call, or after the last expression." ;; Don't print default face here. value) (princ "\n '(") - (princ symbol) + (prin1 symbol) (princ " ") (prin1 value) (if (or (get symbol 'face-defface-spec)