summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2017-11-09 21:25:36 +0000
committerJoão Távora <joaotavora@gmail.com>2017-11-09 21:25:36 +0000
commit89382780e1729861d98eca6e028ca1c62662a59f (patch)
tree9407a0fe4872ecdf0e342e0e10d32647c5ec75a1
parent535688a4181ae4052db354ce2b877507f11c9e66 (diff)
downloademacs-89382780e1729861d98eca6e028ca1c62662a59f.tar.gz
flymake-diag-region really returns nil if region is invalid (bug#29174)
Reported by Lele Gaifax <lele@metapensiero.it>. * lisp/progmodes/flymake.el (flymake-diag-region): Really return nil if the region is invalid.
-rw-r--r--lisp/progmodes/flymake.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 883f96747b9..ea63420dfae 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -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.