emacs: fix error-reporting when loading packages