Commit 89382780 authored by João Távora's avatar João Távora

flymake-diag-region really returns nil if region is invalid (bug#29174)

Reported by Lele Gaifax <>.

* lisp/progmodes/flymake.el (flymake-diag-region): Really
return nil if the region is invalid.
parent 535688a4
......@@ -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")
(defvar flymake-diagnostic-functions nil
"Special hook of Flymake backends that check a buffer.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment