emacs-elpa-diffs
[Top][All Lists]
Advanced

[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]"
    ..^



reply via email to

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