emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 8938278: flymake-diag-region really returns nil i


From: João Távora
Subject: [Emacs-diffs] emacs-26 8938278: flymake-diag-region really returns nil if region is invalid (bug#29174)
Date: Thu, 9 Nov 2017 16:29:35 -0500 (EST)

branch: emacs-26
commit 89382780e1729861d98eca6e028ca1c62662a59f
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    flymake-diag-region really returns nil if region is invalid (bug#29174)
    
    Reported by Lele Gaifax <address@hidden>.
    
    * 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 883f967..ea63420 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]