[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint a2a29d6 03/15: Scan arguments to search-{forward
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint a2a29d6 03/15: Scan arguments to search-{forward, backward}-regexp |
Date: |
Sat, 29 Feb 2020 17:22:28 -0500 (EST) |
branch: externals/relint
commit a2a29d6886f62fa882b2843b8d1a7e7ef2df93ed
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
Scan arguments to search-{forward,backward}-regexp
These are aliases of re-search-{forward,backward}, still occasionally
used.
---
relint.el | 1 +
test/2.elisp | 2 ++
test/2.expected | 86 ++++++++++++++++++++++++++++++---------------------------
3 files changed, 49 insertions(+), 40 deletions(-)
diff --git a/relint.el b/relint.el
index 477ee1c..00f21dc 100644
--- a/relint.el
+++ b/relint.el
@@ -1482,6 +1482,7 @@ directly."
'query-replace-regexp
'posix-looking-at 'posix-search-backward 'posix-search-forward
'posix-string-match
+ 'search-forward-regexp 'search-backward-regexp
'load-history-filename-element
'kill-matching-buffers
'keep-lines 'flush-lines 'how-many)
diff --git a/test/2.elisp b/test/2.elisp
index 600103e..1a2c4ea 100644
--- a/test/2.elisp
+++ b/test/2.elisp
@@ -5,6 +5,8 @@
(looking-at "[aa]")
(re-search-forward "[bb]")
(re-search-backward "[cc]")
+ (search-forward-regexp "[BB]")
+ (search-forward-regexp "[CC]")
(string-match "[dd]" s)
(string-match-p "[ee]" s)
(looking-at-p "[ff]")
diff --git a/test/2.expected b/test/2.expected
index 984b5a0..876b12d 100644
--- a/test/2.expected
+++ b/test/2.expected
@@ -7,123 +7,129 @@
2.elisp:7:23: In call to re-search-backward: Duplicated `c' inside character
alternative (pos 2)
"[cc]"
..^
-2.elisp:8:17: In call to string-match: Duplicated `d' inside character
alternative (pos 2)
+2.elisp:8:26: In call to search-forward-regexp: Duplicated `B' inside
character alternative (pos 2)
+ "[BB]"
+ ..^
+2.elisp:9:26: In call to search-forward-regexp: Duplicated `C' inside
character alternative (pos 2)
+ "[CC]"
+ ..^
+2.elisp:10:17: In call to string-match: Duplicated `d' inside character
alternative (pos 2)
"[dd]"
..^
-2.elisp:9:19: In call to string-match-p: Duplicated `e' inside character
alternative (pos 2)
+2.elisp:11:19: In call to string-match-p: Duplicated `e' inside character
alternative (pos 2)
"[ee]"
..^
-2.elisp:10:17: In call to looking-at-p: Duplicated `f' inside character
alternative (pos 2)
+2.elisp:12:17: In call to looking-at-p: Duplicated `f' inside character
alternative (pos 2)
"[ff]"
..^
-2.elisp:11:17: In call to looking-back: Duplicated `g' inside character
alternative (pos 2)
+2.elisp:13:17: In call to looking-back: Duplicated `g' inside character
alternative (pos 2)
"[gg]"
..^
-2.elisp:12:29: In call to replace-regexp-in-string: Duplicated `h' inside
character alternative (pos 2)
+2.elisp:14:29: In call to replace-regexp-in-string: Duplicated `h' inside
character alternative (pos 2)
"[hh]"
..^
-2.elisp:13:25: In call to query-replace-regexp: Duplicated `j' inside
character alternative (pos 2)
+2.elisp:15:25: In call to query-replace-regexp: Duplicated `j' inside
character alternative (pos 2)
"[jj]"
..^
-2.elisp:14:21: In call to posix-looking-at: Duplicated `k' inside character
alternative (pos 2)
+2.elisp:16:21: In call to posix-looking-at: Duplicated `k' inside character
alternative (pos 2)
"[kk]"
..^
-2.elisp:15:26: In call to posix-search-backward: Duplicated `l' inside
character alternative (pos 2)
+2.elisp:17:26: In call to posix-search-backward: Duplicated `l' inside
character alternative (pos 2)
"[ll]"
..^
-2.elisp:16:25: In call to posix-search-forward: Duplicated `m' inside
character alternative (pos 2)
+2.elisp:18:25: In call to posix-search-forward: Duplicated `m' inside
character alternative (pos 2)
"[mm]"
..^
-2.elisp:17:23: In call to posix-string-match: Duplicated `n' inside character
alternative (pos 2)
+2.elisp:19:23: In call to posix-string-match: Duplicated `n' inside character
alternative (pos 2)
"[nn]"
..^
-2.elisp:18:34: In call to load-history-filename-element: Duplicated `o' inside
character alternative (pos 2)
+2.elisp:20:34: In call to load-history-filename-element: Duplicated `o' inside
character alternative (pos 2)
"[oo]"
..^
-2.elisp:19:26: In call to kill-matching-buffers: Duplicated `p' inside
character alternative (pos 2)
+2.elisp:21:26: In call to kill-matching-buffers: Duplicated `p' inside
character alternative (pos 2)
"[pp]"
..^
-2.elisp:20:15: In call to keep-lines: Duplicated `q' inside character
alternative (pos 2)
+2.elisp:22:15: In call to keep-lines: Duplicated `q' inside character
alternative (pos 2)
"[qq]"
..^
-2.elisp:21:16: In call to flush-lines: Duplicated `r' inside character
alternative (pos 2)
+2.elisp:23:16: In call to flush-lines: Duplicated `r' inside character
alternative (pos 2)
"[rr]"
..^
-2.elisp:22:13: In call to how-many: Duplicated `s' inside character
alternative (pos 2)
+2.elisp:24:13: In call to how-many: Duplicated `s' inside character
alternative (pos 2)
"[ss]"
..^
-2.elisp:23:19: In call to split-string: Duplicated `t' inside character
alternative (pos 2)
+2.elisp:25:19: In call to split-string: Duplicated `t' inside character
alternative (pos 2)
"[tt]"
..^
-2.elisp:23:30: In call to split-string: Duplicated `u' inside character
alternative (pos 2)
+2.elisp:25:30: In call to split-string: Duplicated `u' inside character
alternative (pos 2)
"[uu]"
..^
-2.elisp:24:31: In call to split-string-and-unquote: Duplicated `v' inside
character alternative (pos 2)
+2.elisp:26:31: In call to split-string-and-unquote: Duplicated `v' inside
character alternative (pos 2)
"[vv]"
..^
-2.elisp:25:23: In call to string-trim-left: Duplicated `w' inside character
alternative (pos 2)
+2.elisp:27:23: In call to string-trim-left: Duplicated `w' inside character
alternative (pos 2)
"[ww]"
..^
-2.elisp:26:24: In call to string-trim-right: Duplicated `x' inside character
alternative (pos 2)
+2.elisp:28:24: In call to string-trim-right: Duplicated `x' inside character
alternative (pos 2)
"[xx]"
..^
-2.elisp:27:18: In call to string-trim: Duplicated `y' inside character
alternative (pos 2)
+2.elisp:29:18: In call to string-trim: Duplicated `y' inside character
alternative (pos 2)
"[yy]"
..^
-2.elisp:27:25: In call to string-trim: Duplicated `z' inside character
alternative (pos 2)
+2.elisp:29:25: In call to string-trim: Duplicated `z' inside character
alternative (pos 2)
"[zz]"
..^
-2.elisp:40:14: In call to f2: Duplicated `B' inside character alternative (pos
2)
+2.elisp:42:14: In call to f2: Duplicated `B' inside character alternative (pos
2)
"[BB]"
..^
-2.elisp:40:28: In call to f2: Duplicated `D' inside character alternative (pos
2)
+2.elisp:42:28: In call to f2: Duplicated `D' inside character alternative (pos
2)
"[DD]"
..^
-2.elisp:40:42: In call to f2: Duplicated `F' inside character alternative (pos
2)
+2.elisp:42:42: In call to f2: Duplicated `F' inside character alternative (pos
2)
"[FF]"
..^
-2.elisp:40:56: In call to f2: Duplicated `H' inside character alternative (pos
2)
+2.elisp:42:56: In call to f2: Duplicated `H' inside character alternative (pos
2)
"[HH]"
..^
-2.elisp:40:70: In call to f2: Duplicated `J' inside character alternative (pos
2)
+2.elisp:42:70: In call to f2: Duplicated `J' inside character alternative (pos
2)
"[JJ]"
..^
-2.elisp:41:14: In call to s2: Duplicated `B' inside character alternative (pos
2)
+2.elisp:43:14: In call to s2: Duplicated `B' inside character alternative (pos
2)
"[BB]"
..^
-2.elisp:41:28: In call to s2: Duplicated `D' inside character alternative (pos
2)
+2.elisp:43:28: In call to s2: Duplicated `D' inside character alternative (pos
2)
"[DD]"
..^
-2.elisp:41:42: In call to s2: Duplicated `F' inside character alternative (pos
2)
+2.elisp:43:42: In call to s2: Duplicated `F' inside character alternative (pos
2)
"[FF]"
..^
-2.elisp:41:56: In call to s2: Duplicated `H' inside character alternative (pos
2)
+2.elisp:43:56: In call to s2: Duplicated `H' inside character alternative (pos
2)
"[HH]"
..^
-2.elisp:41:70: In call to s2: Duplicated `J' inside character alternative (pos
2)
+2.elisp:43:70: In call to s2: Duplicated `J' inside character alternative (pos
2)
"[JJ]"
..^
-2.elisp:42:14: In call to m2: Duplicated `B' inside character alternative (pos
2)
+2.elisp:44:14: In call to m2: Duplicated `B' inside character alternative (pos
2)
"[BB]"
..^
-2.elisp:42:28: In call to m2: Duplicated `D' inside character alternative (pos
2)
+2.elisp:44:28: In call to m2: Duplicated `D' inside character alternative (pos
2)
"[DD]"
..^
-2.elisp:42:42: In call to m2: Duplicated `F' inside character alternative (pos
2)
+2.elisp:44:42: In call to m2: Duplicated `F' inside character alternative (pos
2)
"[FF]"
..^
-2.elisp:42:56: In call to m2: Duplicated `H' inside character alternative (pos
2)
+2.elisp:44:56: In call to m2: Duplicated `H' inside character alternative (pos
2)
"[HH]"
..^
-2.elisp:42:70: In call to m2: Duplicated `J' inside character alternative (pos
2)
+2.elisp:44:70: In call to m2: Duplicated `J' inside character alternative (pos
2)
"[JJ]"
..^
-2.elisp:50:14: In call to f5: Duplicated `b' inside character alternative (pos
2)
+2.elisp:52:14: In call to f5: Duplicated `b' inside character alternative (pos
2)
"[bb]"
..^
-2.elisp:50:21: In call to f5: Duplicated `c' inside character alternative (pos
2)
+2.elisp:52:21: In call to f5: Duplicated `c' inside character alternative (pos
2)
"[cc]"
..^
-2.elisp:50:28: In call to f5: Duplicated `d' inside character alternative (pos
2)
+2.elisp:52:28: In call to f5: Duplicated `d' inside character alternative (pos
2)
"[dd]"
..^
- [elpa] externals/relint updated (3315f03 -> c2d3f3b), Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 55070de 02/15: Update copyright year to 2020, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint a2a29d6 03/15: Scan arguments to search-{forward, backward}-regexp,
Mattias Engdegård <=
- [elpa] externals/relint c733b47 05/15: Use text quoting for all messages, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint b46ee8b 04/15: Update copyright year to 2020, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint bb7d8a1 10/15: Fix mistake in previous commit, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 1741e2c 09/15: Locate error position in 'concat' forms, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 8cc1017 12/15: Rename relint--pos-from-toplevel-pos-path, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 9de65a6 11/15: Remove package description in relint.el, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint c33b893 06/15: Refactor error reporting, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 803579c 01/15: More font-lock-keywords detection, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 47490f3 08/15: Add relint-buffer for easier use of relint as a library, Mattias Engdegård, 2020/02/29
- [elpa] externals/relint 159a210 13/15: Simplify line/column computation and reindent, Mattias Engdegård, 2020/02/29