changeset 68160:c9545d6c538f

(custom-theme-add-variable): Don't add `custom-enabled-themes'.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 13 Jan 2006 02:35:30 +0000
parents fca6909a92e8
children b219be97e734
files lisp/cus-theme.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/cus-theme.el	Fri Jan 13 02:30:03 2006 +0000
+++ b/lisp/cus-theme.el	Fri Jan 13 02:35:30 2006 +0000
@@ -160,6 +160,8 @@
 	   (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