[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 6bfba5c 01/11: Always output to stderr when runn
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint 6bfba5c 01/11: Always output to stderr when running noninteractively |
Date: |
Sat, 20 Jun 2020 05:57:40 -0400 (EDT) |
branch: externals/relint
commit 6bfba5c46a542a1b6396717779a9cd6e65bb5848
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Always output to stderr when running noninteractively
Previously, relint-file, relint-directory and relint-current-buffer
always wrote to the *relint* buffer which may be less useful in such
cases (especially with the summary line going to stderr).
Reported/suggested by Paul Pogonyshev (bug #10).
---
relint.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/relint.el b/relint.el
index 8134671..959f57d 100644
--- a/relint.el
+++ b/relint.el
@@ -107,14 +107,16 @@
(defvar relint--suppression-count)
(defun relint--get-error-buffer ()
- (let ((buf (get-buffer-create "*relint*")))
- (with-current-buffer buf
- (unless (eq major-mode 'relint-mode)
- (relint-mode))
- (let ((inhibit-read-only t))
- (compilation-forget-errors)
- (erase-buffer)))
- buf))
+ "Buffer to which errors are printed, or nil if noninteractive."
+ (and (not noninteractive)
+ (let ((buf (get-buffer-create "*relint*")))
+ (with-current-buffer buf
+ (unless (eq major-mode 'relint-mode)
+ (relint-mode))
+ (let ((inhibit-read-only t))
+ (compilation-forget-errors)
+ (erase-buffer)))
+ buf)))
(defun relint--add-to-error-buffer (string)
(with-current-buffer relint--error-buffer
- [elpa] externals/relint updated (a54960a -> 0c35e02), Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 6bfba5c 01/11: Always output to stderr when running noninteractively,
Mattias Engdegård <=
- [elpa] externals/relint 1ea9b91 05/11: Add tests for ineffective backslash check, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 0d80c1f 07/11: Rename various 'miscape' identifiers, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint e35fa2e 09/11: Fix doc string predicate, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint e8d8052 03/11: Add checking of ineffective backslashes in string literals, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 329df9c 02/11: Refactor framework, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 2de1106 04/11: Sort diagnostics by buffer position, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint a1c7bf5 06/11: Describe the ineffective backslash warning in README, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 0627d4d 08/11: Simplify (and speed up) string scanning regexp, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 0c35e02 11/11: Increment version to 1.18, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 6a86509 10/11: Tuned miscape filtering, Mattias Engdegård, 2020/06/20