emacs: reset errors after extension or package selection