* custom.el (custom-push-theme): Clarify docstring. VALUE nil for
reset means to remove setting from theme entirely. Don't keep
expanding theme-settings list; delete old entries if necessary.
* cus-edit.el (custom-buffer-create-internal): Move "Erase
customization" button one line up.
(custom-themed): New face.
(custom-magic-alist): New value, THEMED, for theme settings.
(custom-variable-state-set): Check theme-value.
(custom-variable-reset-standard, custom-face-reset-standard):
Remove theme setting entirely.
theme. Don't recalculate a face if it's not loaded yet.
* cus-face.el (custom-theme-set-faces): Don't change saved-face if
the `user' theme is in effect.
of a given theme in its theme-settings property.
Maintain position of old settings in the theme-value or theme-face property.
(custom-enabled-themes): New variable.
(custom-theme-enabled-p): New function.
(provide-theme): Update custom-enabled-themes.
Disable and reenable the `user' theme.
(require-theme): Doc fix.
(custom-do-theme-reset, custom-remove-theme): Functions deleted.
(custom-theme-value, custom-theme-variable-value): Likewise.
(custom-theme-reset-internal): Likewise.
(custom-theme-load-themes): Fix bugs and use custom-disable-theme.
(custom-enable-theme, custom-disable-theme): New functions.
(custom-variable-theme-value, custom-face-theme-value): Likewise.
(custom-theme-recalc-variable, custom-theme-recalc-face): Likewise.
(custom-theme-reset-variables): Simplify.
(deftheme, custom-declare-theme, custom-make-theme-feature):
Definitions moved.
(custom-declare-theme): New function.
(deftheme): New macro.
(custom-make-theme-feature): New function.
(custom-theme-p): New function.
(custom-check-theme): New function.
(custom-push-theme): New function.
(custom-theme-set-variables): Take themes into account.
(custom-loaded-themes): New variable.
(custom-theme-loaded-p): New function.
(provide-theme): New function.
(require-theme): New function.
(custom-remove-theme): New function.
(custom-do-theme-reset): New function.
(custom-theme-load-themes): New function.
(custom-load-themes): New function.
(custom-theme-value): New function.
(custom-theme-variable-value): New function.
(custom-theme-reset-internal): New function.
(custom-theme-reset-variables): New function.
(custom-reset-variables): New function.