diff options
| author | João Távora | 2017-11-09 20:44:11 +0000 |
|---|---|---|
| committer | João Távora | 2017-11-09 20:45:05 +0000 |
| commit | 72e62d3fdb2b24dd9808f49fbbd864715337d2bf (patch) | |
| tree | fdd6195e2dd16be05cd58ae068345d17364cd7a4 | |
| parent | b28de574112991bfd2234989d080e54f565a549c (diff) | |
| download | emacs-72e62d3fdb2b24dd9808f49fbbd864715337d2bf.tar.gz emacs-72e62d3fdb2b24dd9808f49fbbd864715337d2bf.zip | |
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.
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 6 |
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." | |||
| 1615 | (generate-new-buffer " *checkdoc-temp*"))) | 1615 | (generate-new-buffer " *checkdoc-temp*"))) |
| 1616 | (unwind-protect | 1616 | (unwind-protect |
| 1617 | (save-excursion | 1617 | (save-excursion |
| 1618 | (checkdoc-current-buffer t)) | 1618 | ;; checkdoc-current-buffer can error if there are |
| 1619 | ;; unbalanced parens, for example, but this shouldn't | ||
| 1620 | ;; disable the backend (bug#29176). | ||
| 1621 | (ignore-errors | ||
| 1622 | (checkdoc-current-buffer t))) | ||
| 1619 | (kill-buffer checkdoc-diagnostic-buffer))) | 1623 | (kill-buffer checkdoc-diagnostic-buffer))) |
| 1620 | (funcall report-fn | 1624 | (funcall report-fn |
| 1621 | (cl-loop for (text start end _unfixable) in | 1625 | (cl-loop for (text start end _unfixable) in |