]> git.eshelyaron.com Git - emacs.git/commitdiff
flymake-diag-region really returns nil if region is invalid (bug#29174)
authorJoão Távora <joaotavora@gmail.com>
Thu, 9 Nov 2017 21:25:36 +0000 (21:25 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 9 Nov 2017 21:25:36 +0000 (21:25 +0000)
Reported by Lele Gaifax <lele@metapensiero.it>.

* lisp/progmodes/flymake.el (flymake-diag-region): Really
return nil if the region is invalid.

lisp/progmodes/flymake.el

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