>> ;;;###autoload >> -(defun package-install-selected-packages () >> +(defun package-install-selected-packages (&optional noconfirm) >> "Ensure packages in `package-selected-packages' are installed. >> -If some packages are not installed propose to install them." >> +If some packages are not installed, propose to install them. >> +If optional argument NOCONFIRM is non-nil, don't ask for >> +confirmation to install packages." >> (interactive) >> ;; We don't need to populate `package-selected-packages' before >> ;; using here, because the outcome is the same either way (nothing >> ;; gets installed). >> + (package--archives-initialize) > > I would put this new line above the comment, as the comment relates to > this next line: Hi Stefan, good catch! Thank you for the suggestion. Here is an updated patch.