Protect Flymake checkdoc backend against checkdoc errors (bug#29176)
The function checkdoc-current-buffer may error if there are unbalanced parens, for example, but this shouldn't disable the elisp-flymake-checkdoc backend. * lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc): Use ignore-errors.
This commit is contained in:
parent
b28de57411
commit
72e62d3fdb
1 changed files with 5 additions and 1 deletions
|
@ -1615,7 +1615,11 @@ Calls REPORT-FN directly."
|
||||||
(generate-new-buffer " *checkdoc-temp*")))
|
(generate-new-buffer " *checkdoc-temp*")))
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(checkdoc-current-buffer t))
|
;; checkdoc-current-buffer can error if there are
|
||||||
|
;; unbalanced parens, for example, but this shouldn't
|
||||||
|
;; disable the backend (bug#29176).
|
||||||
|
(ignore-errors
|
||||||
|
(checkdoc-current-buffer t)))
|
||||||
(kill-buffer checkdoc-diagnostic-buffer)))
|
(kill-buffer checkdoc-diagnostic-buffer)))
|
||||||
(funcall report-fn
|
(funcall report-fn
|
||||||
(cl-loop for (text start end _unfixable) in
|
(cl-loop for (text start end _unfixable) in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue