diff options
| -rw-r--r-- | lisp/cus-theme.el | 2 |
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") | |||
| 160 | (message "%s is already in the theme" (symbol-name symbol))) | 160 | (message "%s is already in the theme" (symbol-name symbol))) |
| 161 | ((not (boundp symbol)) | 161 | ((not (boundp symbol)) |
| 162 | (message "%s is not defined as a variable" (symbol-name symbol))) | 162 | (message "%s is not defined as a variable" (symbol-name symbol))) |
| 163 | ((eq symbol 'custom-enabled-themes) | ||
| 164 | (message "Custom theme cannot contain `custom-enabled-themes'")) | ||
| 163 | (t | 165 | (t |
| 164 | (widget-insert "\n") | 166 | (widget-insert "\n") |
| 165 | (let ((widget (widget-create 'custom-variable | 167 | (let ((widget (widget-create 'custom-variable |