Bugfixes for `customize-create-theme'.
commitda16abfc7e8b83dea385f717c50a58a3b458c35c
authorChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 00:16:34 +0000 (15 20:16 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 00:16:34 +0000 (15 20:16 -0400)
treea6cad5f89fc556b3248b36c195bc477a2c27f3a7
parente3fc5b1907be5444ca6315c531ecff81e77c7bdb
Bugfixes for `customize-create-theme'.

* cus-theme.el (customize-create-theme): Delete overlays after
erasing.  If given a THEME arg, display only the faces of that arg
instead of custom-theme--listed-faces.
(custom-theme-variable-menu, custom-theme-variable-action)
(custom-variable-reset-theme, custom-theme-delete-variable): Deleted.
(custom-theme-add-variable, custom-theme-add-face): Apply value
from the theme settings, instead of the current value.
(custom-theme-add-var-1, custom-theme-add-face-1): New functions.
(custom-theme-visit-theme): Allow calling outside theme buffers.
(custom-theme-merge-theme): Don't enable the theme when merging.
(custom-theme-write-variables, custom-theme-write-faces): Use the
:shown-value properties to save buffer values, not global ones.
(customize-themes): Display a warning about user customizations.

* cus-edit.el (custom-variable-value-create)
(custom-face-value-create): Obey new special properties
:shown-value and :inhibit-magic.
lisp/ChangeLog
lisp/cus-edit.el
lisp/cus-theme.el