[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 61c0dd607f 15/17: Fix \x test in emacs 30
From: |
ELPA Syncer |
Subject: |
[elpa] externals/relint 61c0dd607f 15/17: Fix \x test in emacs 30 |
Date: |
Thu, 1 Aug 2024 12:59:08 -0400 (EDT) |
branch: externals/relint
commit 61c0dd607f821657225325f3f3b48aa851da0a44
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Mattias EngdegÄrd <mattiase@acm.org>
Fix \x test in emacs 30
---
relint-test.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/relint-test.el b/relint-test.el
index e044ab78a7..18fd9006b2 100644
--- a/relint-test.el
+++ b/relint-test.el
@@ -19,6 +19,7 @@
(require 'relint)
(require 'ert)
+(require 'cl-lib)
;; Required for some of the source in test/
(require 'subr-x)
@@ -194,13 +195,12 @@ and a path."
(with-current-buffer buf
(emacs-lisp-mode)
(insert "(print \"c \\xf \\xg \\x d\")\n"))
- (let* ((diags (relint-buffer buf))
- (err (condition-case err
- (read-from-string "?\\x")
- (error (prin1-to-string err)))))
+ (let ((diags (relint-buffer buf)))
(should (equal
;; Ignore 'invalid escape char syntax' error.
- (remove (assoc err diags) diags)
+ (cl-remove-if (lambda (d)
+ (eq (relint-diag-severity d) 'error))
+ diags)
'(["Character escape `\\x' not followed by hex digit"
15 16 nil nil nil nil warning]
["Character escape `\\x' not followed by hex digit"
- [elpa] externals/relint 458a920b46 06/17: Use a vector instead of list for complaint tuple, (continued)
- [elpa] externals/relint 458a920b46 06/17: Use a vector instead of list for complaint tuple, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 79ba1f0183 14/17: Require Emacs 27 or newer, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 8cd09d69ae 16/17: NEWS entry for upcoming version 2.0, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 94b23171f0 12/17: Add pos-type field in diag object, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 5c63370936 04/17: Adapt to xr grouped diagnostics, ELPA Syncer, 2024/08/01
- [elpa] externals/relint caea432bb4 09/17: Better string range highlighting in output, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 8e8db0e4b3 07/17: Simplify: xr-lint no longer signals errors, ELPA Syncer, 2024/08/01
- [elpa] externals/relint bc17dfcd16 05/17: Use ranges in relint's own diags, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 9495957270 08/17: Grouped diagnostics, handle 'info' messages, ELPA Syncer, 2024/08/01
- [elpa] externals/relint dfd0e30ac8 13/17: Expose the relint-diag object to the user, ELPA Syncer, 2024/08/01
- [elpa] externals/relint 61c0dd607f 15/17: Fix \x test in emacs 30,
ELPA Syncer <=