branch: externals/relint
commit d86a85b8bc89cd34d3b476473a999d77acc7ba8c
Author: Mattias Engdegård <matti...@acm.org>
Commit: Mattias Engdegård <matti...@acm.org>

    Nonzero exit status in relint-batch iff unsuppressed errors
    
    Suggested by Damien Cassou (bug #6).
---
 relint.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/relint.el b/relint.el
index 9353b6e..81a0f1e 100644
--- a/relint.el
+++ b/relint.el
@@ -1777,7 +1777,8 @@ searched recursively for *.el files to scan."
                                   (list arg)))
                               command-line-args-left)
                       nil default-directory)
-  (setq command-line-args-left nil))
+  (setq command-line-args-left nil)
+  (kill-emacs (if (> relint--error-count relint--suppression-count) 1 0)))
 
 (provide 'relint)
 

Reply via email to