summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2017-11-09 20:44:11 +0000
committerJoão Távora <joaotavora@gmail.com>2017-11-09 20:45:05 +0000
commit72e62d3fdb2b24dd9808f49fbbd864715337d2bf (patch)
treefdd6195e2dd16be05cd58ae068345d17364cd7a4 /lisp
parentb28de574112991bfd2234989d080e54f565a549c (diff)
downloademacs-72e62d3fdb2b24dd9808f49fbbd864715337d2bf.tar.gz
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/elisp-mode.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 41415943a58..5ba09789097 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1615,7 +1615,11 @@ Calls REPORT-FN directly."
(generate-new-buffer " *checkdoc-temp*")))
(unwind-protect
(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)))
(funcall report-fn
(cl-loop for (text start end _unfixable) in