Stefan Monnier
2013-04-23 19:52:09 UTC
This obviously yields the suggestion "don't do that, then", but the
manual doesn't seem to discourage the programmer from using autoload
cookies with defcustom, so I think either the behaviour or the manual
should be changed.
Using autoloads cookies on defvars and defcustom is indeed somethingmanual doesn't seem to discourage the programmer from using autoload
cookies with defcustom, so I think either the behaviour or the manual
should be changed.
I generally discourage and I'd like to see such uses diminish.
But at the same time, they are sometimes important, so we should
definitely try to make it work right.
Note that "for M-x customize-option to list it" is not a good reason to
autoload a variable. We should teach customize-option to load packages
as needed to really remove this desire to autoload variables.
Stefan