]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't resignal errors in flymake-diag-region
authorJoão Távora <joaotavora@gmail.com>
Fri, 3 Nov 2017 16:53:45 +0000 (16:53 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 3 Nov 2017 16:53:45 +0000 (16:53 +0000)
* lisp/progmodes/flymake.el (flymake-diag-region): Use
flymake-log instead of flymake-error.

lisp/progmodes/flymake.el

index c2349d8c7cc05593c7c9831f6e66a9c67999e2eb..e13d79770e5d22638eaef906d5db5777f83e6873 100644 (file)
@@ -342,7 +342,7 @@ region is invalid."
                 (let* ((beg (fallback-bol))
                        (end (fallback-eol beg)))
                   (cons beg end)))))))
-    (error (flymake-error "Invalid region line=%s col=%s" line col))))
+    (error (flymake-log :warning "Invalid region line=%s col=%s" line col))))
 
 (defvar flymake-diagnostic-functions nil
   "Special hook of Flymake backends that check a buffer.