From: Dmitry Gutov Date: Fri, 29 Jan 2021 13:53:28 +0000 (+0200) Subject: (xref-revert-buffer): Also 'erase-buffer' when handling a user-error X-Git-Tag: emacs-27.2-rc1~50 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e45c29224;p=emacs.git (xref-revert-buffer): Also 'erase-buffer' when handling a user-error * lisp/progmodes/xref.el (xref-revert-buffer): Also 'erase-buffer' when handling a user-error (bug#46042). (cherry picked from commit e86b30d6fd04070b86560774ec82392dbe24ca1e) --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 0b25110b79b..4c53c09d7b3 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -881,6 +881,7 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)." (erase-buffer) (xref--insert-xrefs alist)) (user-error + (erase-buffer) (insert (propertize (error-message-string err)