>>>> "Hrvoje" == Hrvoje Niksic
<hniksic(a)arsdigita.com> writes:
Only when the `defcustom' form is evaluated, this property gets evaluated
too, and stored to the symbol's value slot. This is important because it
allows "dependent" things to work. For instance, if you have:
(defcustom foo 3
...)
(defcustom bar (* foo 5) ; default
...)
Then, if you customize `foo' to 4 and don't touch bar,
`bar' will be
correctly set to 20.
I must be dense, because it seems to me that it would work just as well
with `setq'. I.e. if I do (setq foo 4), the above piece of code will
first not-do-anything with foo and then set bar to 20.
So in what situation does the order really matter ?
Of course, it matters if you do (custom-set-variables '((bar (* foo 6)))),
but I don't think I've ever seen anyone do that, and I'm not even sure
if custom could generate such a statement (as opposed to someone writing it
manually).
Stefan