Commit c798b7e8 authored by Chong Yidong's avatar Chong Yidong
Browse files

(custom-theme-add-variable): Don't add `custom-enabled-themes'.

parent 4c92479f
......@@ -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'"))
(widget-insert "\n")
(let ((widget (widget-create 'custom-variable
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment