summaryrefslogtreecommitdiff
path: root/lisp/cus-theme.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-01-13 02:35:30 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-01-13 02:35:30 +0000
commitc798b7e89bee7dbad5dc5c1eb24c100d3618a859 (patch)
tree63f7fb410c70a2b63aa48ea4f5bd8066797e3455 /lisp/cus-theme.el
parent4c92479f1bd20db9cf21221f5bae1d2b03b370b9 (diff)
downloademacs-c798b7e89bee7dbad5dc5c1eb24c100d3618a859.tar.gz
(custom-theme-add-variable): Don't add `custom-enabled-themes'.
Diffstat (limited to 'lisp/cus-theme.el')
-rw-r--r--lisp/cus-theme.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el
index afb760a7d4e..502220d278d 100644
--- a/lisp/cus-theme.el
+++ b/lisp/cus-theme.el
@@ -160,6 +160,8 @@ the directory " custom-theme-directory "\n\n")
(message "%s is already in the theme" (symbol-name symbol)))
((not (boundp symbol))
(message "%s is not defined as a variable" (symbol-name symbol)))
+ ((eq symbol 'custom-enabled-themes)
+ (message "Custom theme cannot contain `custom-enabled-themes'"))
(t
(widget-insert "\n")
(let ((widget (widget-create 'custom-variable