summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-25 00:29:49 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-25 00:29:49 +0000
commit1fd3057c1cdf7ddef9937d560fe711f6cd3e512e (patch)
tree35b715c7efa481779a567ea42e8a00259f7dc87b
parenta7b16be30721b8b5d7736ffb169f0a3e6daf3523 (diff)
downloademacs-1fd3057c1cdf7ddef9937d560fe711f6cd3e512e.tar.gz
(custom-declare-variable): Rename 2nd arg to DEFAULT.
-rw-r--r--lisp/custom.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index b56c5af3aaf..16c73babbf1 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -102,10 +102,12 @@ not using the standard setting. Otherwise, use the `set-default'."
(t
(set-default symbol (eval value)))))
-(defun custom-declare-variable (symbol value doc &rest args)
- "Like `defcustom', but SYMBOL and VALUE are evaluated as normal arguments."
+(defun custom-declare-variable (symbol default doc &rest args)
+ "Like `defcustom', but SYMBOL and DEFAULT are evaluated as normal arguments.
+DEFAULT should be an expression to evaluate to compute the default value,
+not the default value itself."
;; Remember the standard setting.
- (put symbol 'standard-value (list value))
+ (put symbol 'standard-value (list default))
;; Maybe this option was rogue in an earlier version. It no longer is.
(when (get symbol 'force-value)
;; It no longer is.
@@ -147,7 +149,7 @@ not using the standard setting. Otherwise, use the `set-default'."
'custom-variable))))))
(put symbol 'custom-requests requests)
;; Do the actual initialization.
- (funcall initialize symbol value))
+ (funcall initialize symbol default))
(run-hooks 'custom-define-hook)
symbol)