diff options
| -rw-r--r-- | lisp/progmodes/flymake.el | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 30dc749349b..7cb1f222c22 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -1120,15 +1120,7 @@ with a report function." | |||
| 1120 | (setf (flymake--state-running state) run-token | 1120 | (setf (flymake--state-running state) run-token |
| 1121 | (flymake--state-disabled state) nil | 1121 | (flymake--state-disabled state) nil |
| 1122 | (flymake--state-reported-p state) nil)) | 1122 | (flymake--state-reported-p state) nil)) |
| 1123 | ;; FIXME: Should use `condition-case-unless-debug' here, but don't | 1123 | (condition-case-unless-debug err |
| 1124 | ;; for two reasons: (1) that won't let me catch errors from inside | ||
| 1125 | ;; `ert-deftest' where `debug-on-error' appears to be always | ||
| 1126 | ;; t. (2) In cases where the user is debugging elisp somewhere | ||
| 1127 | ;; else, and using flymake, the presence of a frequently | ||
| 1128 | ;; misbehaving backend in the global hook (most likely the legacy | ||
| 1129 | ;; backend) will trigger an annoying backtrace. | ||
| 1130 | ;; | ||
| 1131 | (condition-case err | ||
| 1132 | (apply backend (flymake-make-report-fn backend run-token) | 1124 | (apply backend (flymake-make-report-fn backend run-token) |
| 1133 | args) | 1125 | args) |
| 1134 | (error | 1126 | (error |