emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 72e62d3: Protect Flymake checkdoc backend against


From: João Távora
Subject: [Emacs-diffs] emacs-26 72e62d3: Protect Flymake checkdoc backend against checkdoc errors (bug#29176)
Date: Thu, 9 Nov 2017 15:46:35 -0500 (EST)

branch: emacs-26
commit 72e62d3fdb2b24dd9808f49fbbd864715337d2bf
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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.
---
 lisp/progmodes/elisp-mode.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 4141594..5ba0978 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]