dimitri/el-get — Issue #613: Post-init is the wrong place for autoloads
Author: DarwinAwardWinner
Created: 2012-02-28 22:08:04+00:00
State: open

Lots of recipes have autoload statements in their `:post-init` properties. But post-init is not run until after the package is loaded, and this is especially a problem when el-get is lazy, because the package is not loaded immediately, so the autoloads are not put in place.

We can either move these to `:prepare`, or we could assume that non-string elements of a recipe's `:autoloads` property are autoload statements to be evaluated. I think I prefer the former, because if we choose the latter, then the :autoloads` property can be nil, t, a list of strings, or a list of autoload forms, which is a bit complicated.