> While you're at it: if package-selected-packages (or whatever name you > end up using) is not yet set (e.g. still nil), you could guess an > initial value: take the list of packages that are installed and are not > required by other installed packages. I.e. choose as initial value of > package-selected-packages the smallest set of packages such that > package-autoremove won't have anything to remove. I'll work on this, and then I'll add it in once this patch is applied.