aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-21 19:59:42 +0000
committerRichard M. Stallman2002-09-21 19:59:42 +0000
commit6da43544b7dec950f301216c66a6aa516a49b70b (patch)
tree234eeb308365d101d6d125440b51a6b50a0a6d3a
parent3cc82ee4989bd4bae73dfce7436b2750ab56210b (diff)
downloademacs-6da43544b7dec950f301216c66a6aa516a49b70b.tar.gz
emacs-6da43544b7dec950f301216c66a6aa516a49b70b.zip
(custom-dont-initialize): New variable.
(custom-declare-variable): Don't init the variable if custom-dont-initialize is non-nil.
-rw-r--r--lisp/custom.el8
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 @@
39 ;; Customize information for this option is in `cus-edit.el'. 39 ;; Customize information for this option is in `cus-edit.el'.
40 "Hook called after defining each customize option.") 40 "Hook called after defining each customize option.")
41 41
42(defvar custom-dont-initialize nil
43 "Non-nil means `defcustom' should not initialize the variable.
44That is used for the sake of `custom-make-dependencies'.
45Users should not set it.")
46
42(defvar custom-current-group-alist nil 47(defvar custom-current-group-alist nil
43 "Alist of (FILE . GROUP) indicating the current group to use for FILE.") 48 "Alist of (FILE . GROUP) indicating the current group to use for FILE.")
44 49
@@ -152,7 +157,8 @@ not the default value itself."
152 'custom-variable)))))) 157 'custom-variable))))))
153 (put symbol 'custom-requests requests) 158 (put symbol 'custom-requests requests)
154 ;; Do the actual initialization. 159 ;; Do the actual initialization.
155 (funcall initialize symbol default)) 160 (unless custom-dont-initialize
161 (funcall initialize symbol default)))
156 (setq current-load-list (cons symbol current-load-list)) 162 (setq current-load-list (cons symbol current-load-list))
157 (run-hooks 'custom-define-hook) 163 (run-hooks 'custom-define-hook)
158 symbol) 164 symbol)