comparison lisp/custom.el @ 64226:278c7e4c078a

(custom-declare-variable): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 Jul 2005 05:41:45 +0000
parents fab4526842b1
children 90c5009c1621
comparison
equal deleted inserted replaced
64225:b85492b64a9b 64226:278c7e4c078a
135 (defun custom-declare-variable (symbol default doc &rest args) 135 (defun custom-declare-variable (symbol default doc &rest args)
136 "Like `defcustom', but SYMBOL and DEFAULT are evaluated as normal arguments. 136 "Like `defcustom', but SYMBOL and DEFAULT are evaluated as normal arguments.
137 DEFAULT should be an expression to evaluate to compute the default value, 137 DEFAULT should be an expression to evaluate to compute the default value,
138 not the default value itself. 138 not the default value itself.
139 139
140 DEFAULT is stored as SYMBOL's value in the standard theme. See 140 DEFAULT is stored as SYMBOL's standard value, in SYMBOL's property
141 `custom-known-themes' for a list of known themes. For backwards
142 compatibility, DEFAULT is also stored in SYMBOL's property
143 `standard-value'. At the same time, SYMBOL's property `force-value' is 141 `standard-value'. At the same time, SYMBOL's property `force-value' is
144 set to nil, as the value is no longer rogue." 142 set to nil, as the value is no longer rogue."
145 ;; Remember the standard setting. The value should be in the standard
146 ;; theme, not in this property. However, this would require changing
147 ;; the C source of defvar and others as well...
148 (put symbol 'standard-value (list default)) 143 (put symbol 'standard-value (list default))
149 ;; Maybe this option was rogue in an earlier version. It no longer is. 144 ;; Maybe this option was rogue in an earlier version. It no longer is.
150 (when (get symbol 'force-value) 145 (when (get symbol 'force-value)
151 (put symbol 'force-value nil)) 146 (put symbol 'force-value nil))
152 (when doc 147 (when doc