diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-09-21 19:59:42 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-09-21 19:59:42 +0000 |
commit | 6da43544b7dec950f301216c66a6aa516a49b70b (patch) | |
tree | 234eeb308365d101d6d125440b51a6b50a0a6d3a /lisp | |
parent | 3cc82ee4989bd4bae73dfce7436b2750ab56210b (diff) | |
download | emacs-6da43544b7dec950f301216c66a6aa516a49b70b.tar.gz emacs-6da43544b7dec950f301216c66a6aa516a49b70b.tar.bz2 emacs-6da43544b7dec950f301216c66a6aa516a49b70b.zip |
(custom-dont-initialize): New variable.
(custom-declare-variable): Don't init the variable
if custom-dont-initialize is non-nil.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/custom.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/custom.el b/lisp/custom.el index 9f68eb59e39..608aac402c8 100644 --- a/lisp/custom.el +++ b/lisp/custom.el @@ -39,6 +39,11 @@ ;; Customize information for this option is in `cus-edit.el'. "Hook called after defining each customize option.") +(defvar custom-dont-initialize nil + "Non-nil means `defcustom' should not initialize the variable. +That is used for the sake of `custom-make-dependencies'. +Users should not set it.") + (defvar custom-current-group-alist nil "Alist of (FILE . GROUP) indicating the current group to use for FILE.") @@ -152,7 +157,8 @@ not the default value itself." 'custom-variable)))))) (put symbol 'custom-requests requests) ;; Do the actual initialization. - (funcall initialize symbol default)) + (unless custom-dont-initialize + (funcall initialize symbol default))) (setq current-load-list (cons symbol current-load-list)) (run-hooks 'custom-define-hook) symbol) |