branch: elpa/doc-show-inline commit 11fc50a13c89386e3dd7e32f8e22d927347f14f9 Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@gmail.com>
Demote errors --- doc-show-inline.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc-show-inline.el b/doc-show-inline.el index 866238b365..41a2645c37 100644 --- a/doc-show-inline.el +++ b/doc-show-inline.el @@ -455,7 +455,9 @@ Argument XREF-BACKEND is used to avoid multiple calls to `xref-find-backend'." (save-excursion (doc-show-inline--with-advice 'run-mode-hooks :override - (lambda (_hooks) (run-hooks 'doc-show-inline-buffer-hook)) + (lambda (_hooks) + (with-demoted-errors "doc-show-inline-buffer-hook: %S" + (run-hooks 'doc-show-inline-buffer-hook))) (dolist (item xref-list) (let* @@ -475,9 +477,11 @@ Argument XREF-BACKEND is used to avoid multiple calls to `xref-find-backend'." ;; note that we could assume this only uses the comment face ;; however some configurations highlight tags such as TODO ;; or even bad spelling, so font lock this text. - (font-lock-ensure pos-beg pos-end) + (with-demoted-errors "doc-show-inline/font-lock-ensure: %S" + (font-lock-ensure pos-beg pos-end)) - (run-hook-with-args 'doc-show-inline-fontify-hook pos-beg pos-end) + (with-demoted-errors "doc-show-inline-fontify-hook: %S" + (run-hook-with-args 'doc-show-inline-fontify-hook pos-beg pos-end)) (let (