From 89382780e1729861d98eca6e028ca1c62662a59f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 9 Nov 2017 21:25:36 +0000 Subject: [PATCH] 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. --- lisp/progmodes/flymake.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.5