dimitri/el-get — Issue #548: Post-init rules use undocumented variables
Author: DarwinAwardWinner
Created: 2012-02-12 02:25:19+00:00
State: open

I've just realized that lots and lots of post-init rules (and pre-init, prepare, and after rules too, I guess) in packages use variables like `pdir` that are dynamically bound in `el-get-init`, which calls the post-init function. However, the availability of these variables is not documented anywhere, and the fact that they are available at all is a side-effect of dynamic binding. If el-get ever switched to lexical binding, these recipes would all break.

We should either document the fact that these recipes are available within the post-init function and take steps to ensure that they are always dynamically bound, or else we should find a better way to provide this information to post-init functions and depracate the use of these variables within post-init functions.