Allow hiding of modified custom widgets.
commit647bc5022ff4fd7ef72d0cb66d9659af252b38df
authorChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 20:36:20 +0000 (16 16:36 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 20:36:20 +0000 (16 16:36 -0400)
treefce772973ca243b41b38393664a24b4ca6bd978b
parent782b5e8d92668cc6d434c836d076e26db1cab7c1
Allow hiding of modified custom widgets.

* cus-edit.el (custom-variable, custom-face): Combine the
:inhibit-magic and :display-style properties into a single
:custom-style property.
(custom-toggle-hide-variable, custom-toggle-hide-face): New
functions.  If hiding an edited value, save it to :shown-value.
(custom-variable-value-create, custom-face-value-create): Use
them.
(custom-magic-reset): Allow magic property to be unset.

* cus-theme.el (custom-theme-add-var-1)
(custom-theme-add-face-1): Use the :custom-style property.

* custom.el: (custom-theme-load-path): Doc fix.
lisp/ChangeLog
lisp/cus-edit.el
lisp/cus-theme.el
lisp/custom.el