]> git.eshelyaron.com Git - emacs.git/commit
Fix marking "delayed-initialization" vars as dynamically scoped
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 14 Jan 2021 21:45:40 +0000 (16:45 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 14 Jan 2021 21:45:40 +0000 (16:45 -0500)
commit5039f79340c408f26f9fb606ce29e72afc2fb01d
treecb12984667f251f8e9e2f2657e8774e0fe16dbdb
parent53514e77a5a85b53ea0acd55f2ea5f1f78dc356c
Fix marking "delayed-initialization" vars as dynamically scoped

We used to mark those vars as dynbound in `custom-reevaluate-setting`
which forced us to bind `current-load-list` around it to avoid having
the vars be associated with the wrong file.  Move this marking to
`custom-initialize-delay` so we don't need this workaround.

* lisp/custom.el (custom-initialize-delay): Mark the var as dynamic.
(custom-reevaluate-setting): Don't use `defvar` here.

* lisp/startup.el (command-line): Don't let-bind `current-load-list`
around calls to `custom-reevaluate-setting`.
lisp/custom.el
lisp/startup.el