Drop use of unsafep for checking Custom themes; bugfixes.
commit928f4e732d8b605b682cb6d41c9452028083047a
authorChong Yidong <cyd@stupidchicken.com>
Tue, 1 Feb 2011 17:34:07 +0000 (1 12:34 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 1 Feb 2011 17:34:07 +0000 (1 12:34 -0500)
treeb39b90a80e1af3ac24fccdc675a1293c53710ca4
parent7d1166478188fe1fe014d3b64c22641c4fac6a25
Drop use of unsafep for checking Custom themes; bugfixes.

* lisp/custom.el (load-theme): Define return value.  Drop use of
unsafep; call custom-theme-load-confirm for non-known-safe themes.
(custom-theme-load-confirm): Scroll in the correct window.
(custom-enabled-themes): Add custom-safe-themes to :set-after.

* lisp/cus-theme.el (custom-theme-checkbox-toggle): Don't activate the
checkbox if load-theme fails.
lisp/ChangeLog
lisp/cus-theme.el
lisp/custom.el