[elpa] externals/xr 51b1d81 4/5: More skip-set warnings

2019-03-21 Thread Mattias Engdegrd
branch: externals/xr commit 51b1d812498e14da24c9b76a82a2af2ceb7e3256 Author: Mattias Engdegård Commit: Mattias Engdegård More skip-set warnings Now complains about empty and negated empty sets, about single- and two-char ranges, and about unnecessary escapes of range

[elpa] externals/xr updated (a248977 -> 2136a7d)

2019-03-21 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from a248977 Parse and lint skip set strings new f1afeff Add check for `[...]'-framed skip sets new d7325b3 Edit the package doc comment new a948847 Don't complain about [z-a] new 51b1d81 More

[elpa] externals/xr d7325b3 2/5: Edit the package doc comment

2019-03-21 Thread Mattias Engdegrd
branch: externals/xr commit d7325b3c1fe2e8a64c0057e6d790aa46d7c27700 Author: Mattias Engdegård Commit: Mattias Engdegård Edit the package doc comment --- xr.el | 61 - 1 file changed, 28 insertions(+), 33 deletions(-) diff --git

[elpa] externals/xr db5f17b 1/3: Check suspicious curly-bracket constructs

2019-03-17 Thread Mattias Engdegrd
branch: externals/xr commit db5f17b29c96c9a1cfa50cbf831dec1d27cc9e80 Author: Mattias Engdegård Commit: Mattias Engdegård Check suspicious curly-bracket constructs Warn about \{\} and \{,\} (which really mean \{0\} and *), and signal an error for \{N,M\} where N>M. ---

[elpa] externals/xr a248977 3/3: Parse and lint skip set strings

2019-03-17 Thread Mattias Engdegrd
branch: externals/xr commit a24897795ed811ce58d593fb2472723268e27391 Author: Mattias Engdegård Commit: Mattias Engdegård Parse and lint skip set strings Add functions to parse and lint skip set strings, which are the arguments to `skip-chars-forward' and `skip-chars-backward':

[elpa] externals/xr updated (7afb247 -> a248977)

2019-03-17 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 7afb247 Increment version to 1.6 new db5f17b Check suspicious curly-bracket constructs new d6740ce Detect misplaced `]' inside character alternatives new a248977 Parse and lint skip set strings Summary

[elpa] externals/xr d6740ce 2/3: Detect misplaced `]' inside character alternatives

2019-03-17 Thread Mattias Engdegrd
branch: externals/xr commit d6740ceb190e71bab2d992f2ad35b9f6418283de Author: Mattias Engdegård Commit: Mattias Engdegård Detect misplaced `]' inside character alternatives Add an ad-hoc check for a rare but serious mistake: attempts to include literal [ and ] inside a character

[elpa] externals/xr 7afb247: Increment version to 1.6

2019-03-15 Thread Mattias Engdegrd
branch: externals/xr commit 7afb24757ce42cd973ff99455e76072493fe879f Author: Mattias Engdegård Commit: Mattias Engdegård Increment version to 1.6 --- xr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xr.el b/xr.el index d287165..24249aa 100644 --- a/xr.el +++

[elpa] externals/xr updated (513e815 -> 549cbc5)

2019-03-15 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 513e815 Run with case-fold-search set to nil new d0c434d Add missing xr-lint unit test new efc0663 Improved `xr-pp' doc string new 549cbc5 Detect duplicated branches in alternatives Summary of changes:

[elpa] externals/xr efc0663 2/3: Improved `xr-pp' doc string

2019-03-15 Thread Mattias Engdegrd
branch: externals/xr commit efc06637a76437b08edbcc27c6427fb67b44dd91 Author: Mattias Engdegård Commit: Mattias Engdegård Improved `xr-pp' doc string --- xr.el | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xr.el b/xr.el index c9ce0f2..5f644bb 100644 --- a/xr.el

[elpa] externals/xr 549cbc5 3/3: Detect duplicated branches in alternatives

2019-03-15 Thread Mattias Engdegrd
branch: externals/xr commit 549cbc55fa3160e4246fefdead4130c85a91b608 Author: Mattias Engdegård Commit: Mattias Engdegård Detect duplicated branches in alternatives Eg. "A\\|A". Sometimes indication of deeper mistake, always wasteful. --- xr-test.el | 2 ++ xr.el | 6 +- 2

[elpa] externals/xr d0c434d 1/3: Add missing xr-lint unit test

2019-03-15 Thread Mattias Engdegrd
branch: externals/xr commit d0c434d2c5511d372741e351620e9fe90535e246 Author: Mattias Engdegård Commit: Mattias Engdegård Add missing xr-lint unit test --- xr-test.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xr-test.el b/xr-test.el index d4e2d48..c90258a 100644 --- a/xr-test.el

[elpa] externals/xr 513e815 3/3: Run with case-fold-search set to nil

2019-03-05 Thread Mattias Engdegrd
branch: externals/xr commit 513e81551f01a1557f1f6a38c4cc0dcbadb14ffa Author: Mattias Engdegård Commit: Mattias Engdegård Run with case-fold-search set to nil Although none of the regexps matches in the code appear to have their meaning altered by `case-fold-search' right now,

[elpa] externals/xr dc6d6e3 1/3: Escape control chars in all warnings but not double quote

2019-03-05 Thread Mattias Engdegrd
branch: externals/xr commit dc6d6e3cab769ef85fb7a386769a499b6404c3de Author: Mattias Engdegård Commit: Mattias Engdegård Escape control chars in all warnings but not double quote --- xr.el | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/xr.el b/xr.el

[elpa] externals/xr ccc76c8 2/3: More careful character class parsing

2019-03-05 Thread Mattias Engdegrd
branch: externals/xr commit ccc76c8c0b836bbf26b94edfd33d5bb3e8e2a021 Author: Mattias Engdegård Commit: Mattias Engdegård More careful character class parsing [[:random rubbish:]] is an error, not a valid regexp. --- xr-test.el | 11 +++ xr.el | 12 ++-- 2

[elpa] externals/xr updated (369800c -> 513e815)

2019-03-05 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 369800c Fix doc string mistake new dc6d6e3 Escape control chars in all warnings but not double quote new ccc76c8 More careful character class parsing new 513e815 Run with case-fold-search set to nil

[elpa] externals/xr 369800c: Fix doc string mistake

2019-03-01 Thread Mattias Engdegrd
branch: externals/xr commit 369800c97d8b48b90be3477ad0ffe533bf49d306 Author: Mattias Engdegård Commit: Mattias Engdegård Fix doc string mistake --- xr.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xr.el b/xr.el index 98a306e..7f8d4e5 100644 --- a/xr.el +++

[elpa] externals/xr 74b5287 2/3: Turn negative empty sets into anything

2019-03-01 Thread Mattias Engdegrd
branch: externals/xr commit 74b5287e3cf2f73f3fe34dffb91f3671e56b94a3 Author: Mattias Engdegård Commit: Mattias Engdegård Turn negative empty sets into anything [^z-a] was found in the wild (auctex), apparently on purpose. The correct rx translation should be `anything'. ---

[elpa] externals/xr 6085257 1/3: Detect overlap in character alternatives

2019-03-01 Thread Mattias Engdegrd
branch: externals/xr commit 608525744b4b354b166b4f1b9143734d44460d97 Author: Mattias Engdegård Commit: Mattias Engdegård Detect overlap in character alternatives Detecting duplication and overlap in character alternatives turns out to be a fruitful way of finding bugs.

[elpa] externals/xr 952276b 3/3: Add dialect option and improve pretty-printing

2019-03-01 Thread Mattias Engdegrd
branch: externals/xr commit 952276b251a8bd667927d18f96995a22d582a115 Author: Mattias Engdegård Commit: Mattias Engdegård Add dialect option and improve pretty-printing `xr' and `xr-pp' now take an optional DIALECT argument that controls the choice of keywords to some extent.

[elpa] externals/xr updated (5b08350 -> 952276b)

2019-03-01 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 5b08350 Increment version to 1.3 new 6085257 Detect overlap in character alternatives new 74b5287 Turn negative empty sets into anything new 952276b Add dialect option and improve pretty-printing

[elpa] externals/xr updated (127d3fe -> 5b08350)

2019-02-25 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 127d3fe Escape control characters in warnings and errors new d08d400 Warn about reversed ranges in character alternatives new 5b08350 Increment version to 1.3 Summary of changes: xr-test.el | 3 +++ xr.el

[elpa] externals/xr 5b08350 2/2: Increment version to 1.3

2019-02-25 Thread Mattias Engdegrd
branch: externals/xr commit 5b0835038ed43acf9cfc4201be1f012c633a019a Author: Mattias Engdegård Commit: Mattias Engdegård Increment version to 1.3 --- xr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xr.el b/xr.el index 838db3e..853bfc6 100644 --- a/xr.el +++

[elpa] externals/xr d08d400 1/2: Warn about reversed ranges in character alternatives

2019-02-25 Thread Mattias Engdegrd
branch: externals/xr commit d08d40097f4052874c6a526813bd23a7db3d6061 Author: Mattias Engdegård Commit: Mattias Engdegård Warn about reversed ranges in character alternatives [z-a] does not match anything; remove such ranges from the output and warn about them in xr-lint.

[elpa] externals/xr 5318a94 1/3: Eliminate duplicated \ in character alternatives

2019-02-21 Thread Mattias Engdegrd
branch: externals/xr commit 5318a946ec06aae190203d59ec7adc5f8c12ace3 Author: Mattias Engdegård Commit: Mattias Engdegård Eliminate duplicated \ in character alternatives Since we detect duplicated \ in character alternatives, we might just as well remove them in the

[elpa] externals/xr 127d3fe 3/3: Escape control characters in warnings and errors

2019-02-21 Thread Mattias Engdegrd
branch: externals/xr commit 127d3fee727367294dcff86c695fb154a30358e1 Author: Mattias Engdegård Commit: Mattias Engdegård Escape control characters in warnings and errors --- xr-test.el | 5 +++-- xr.el | 65 -- 2 files

[elpa] externals/xr 3c1344b 2/3: Don't warn about repetition of counted repetition

2019-02-21 Thread Mattias Engdegrd
branch: externals/xr commit 3c1344b10a2700a16359434a60c4b3eb6bb1de0c Author: Mattias Engdegård Commit: Mattias Engdegård Don't warn about repetition of counted repetition Repetition of counted repetition can actually be legitimate; -- consider a\{3\}? -- so don't warn about it.

[elpa] externals/xr updated (dec9a2e -> 127d3fe)

2019-02-21 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from dec9a2e Don't warn about \] new 5318a94 Eliminate duplicated \ in character alternatives new 3c1344b Don't warn about repetition of counted repetition new 127d3fe Escape control characters in warnings and

[elpa] externals/xr 1b26866 1/2: Warn about repetition of repetition

2019-02-21 Thread Mattias Engdegrd
branch: externals/xr commit 1b26866aad4ceae17da416bd9328641a516c0d6a Author: Mattias Engdegård Commit: Mattias Engdegård Warn about repetition of repetition Make xr-lint complain about constructs such as a?* as they are usually mistakes. --- xr-test.el | 5 + xr.el |

[elpa] externals/xr updated (8912612 -> dec9a2e)

2019-02-21 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 8912612 Fix xr-lint complaint about \[ new 1b26866 Warn about repetition of repetition new dec9a2e Don't warn about \] Summary of changes: xr-test.el | 6 +- xr.el | 18 -- 2 files

[elpa] externals/xr dec9a2e 2/2: Don't warn about \]

2019-02-21 Thread Mattias Engdegrd
branch: externals/xr commit dec9a2ebc6bc79a1383e10b820e4934176f84b8b Author: Mattias Engdegård Commit: Mattias Engdegård Don't warn about \] Do not warn about an escaped ], since [ needs to be escaped and writing \] is unlikely to be a hidden error. --- xr-test.el | 9

[elpa] externals/xr 8912612: Fix xr-lint complaint about \[

2019-02-20 Thread Mattias Engdegrd
branch: externals/xr commit 8912612803a734984f600b73d58c92ff40f7d480 Author: Mattias Engdegård Commit: Mattias Engdegård Fix xr-lint complaint about \[ --- xr-test.el | 7 --- xr.el | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/xr-test.el b/xr-test.el

[elpa] externals/xr 2cfd98f 2/3: Add xr-lint, a regexp linting tool

2019-02-20 Thread Mattias Engdegrd
branch: externals/xr commit 2cfd98ff44d194901c0d3370a5e2dc6675f21745 Author: Mattias Engdegård Commit: Mattias Engdegård Add xr-lint, a regexp linting tool Since we are already parsing the regexp, we can easily detect uses of questionable or obsolete syntax; `xr-lint' does

[elpa] externals/xr 74cc24c 1/3: Simplify: use preceding-char instead of buffer-substring

2019-02-20 Thread Mattias Engdegrd
branch: externals/xr commit 74cc24ca64016316ed669c4a42e4a76a05c6a2de Author: Mattias Engdegård Commit: Mattias Engdegård Simplify: use preceding-char instead of buffer-substring --- xr.el | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xr.el b/xr.el index

[elpa] externals/xr 139ed84 3/3: Increment version number to 1.2

2019-02-20 Thread Mattias Engdegrd
branch: externals/xr commit 139ed8481389eb029d867119543f99ddc4dec641 Author: Mattias Engdegård Commit: Mattias Engdegård Increment version number to 1.2 --- xr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xr.el b/xr.el index a779f1b..a430cf2 100644 --- a/xr.el +++

[elpa] externals/xr updated (e77aa97 -> 139ed84)

2019-02-20 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from e77aa97 Postfix ops are literal after ^ but not after \(?:^\) new 74cc24c Simplify: use preceding-char instead of buffer-substring new 2cfd98f Add xr-lint, a regexp linting tool new 139ed84 Increment

[elpa] externals/xr e77aa97: Postfix ops are literal after ^ but not after \(?:^\)

2019-02-19 Thread Mattias Engdegrd
branch: externals/xr commit e77aa97e184525fea4fdcb4aa365a73418d4d1b7 Author: Mattias Engdegård Commit: Mattias Engdegård Postfix ops are literal after ^ but not after \(?:^\) ^* means (seq bol "*"), but \(?:^\)* means (zero-or-more bol). --- xr-test.el | 12 xr.el

[elpa] externals/xr 09fe373: More careful error handling of \s and \c

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 09fe37383ba81358fe9680c1bbf679b00da1d07d Author: Mattias Engdegård Commit: Mattias Engdegård More careful error handling of \s and \c \s and \c without a character following is an error, and should not result in a literal s or c. --- xr-test.el | 10

[elpa] externals/xr 41474cb 11/13: Accept unknown character categories

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 41474cbc8bcab67c097a8e111de01832b6fd4f97 Author: Mattias Engdegård Commit: Mattias Engdegård Accept unknown character categories New categories can be defined, so an unknown category code is not necessarily an error. Assume the best and use a raw

[elpa] externals/xr f79d50c 12/13: Add categories L, R, . and SPC

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit f79d50cca60f9ce242a52ac1eac8d9fc9beb282f Author: Mattias Engdegård Commit: Mattias Engdegård Add categories L, R, . and SPC The predefined categories L, R, . and SPC were recently added to rx. Add them here as well. --- xr-test.el | 4 xr.el

[elpa] externals/xr 8532df8 02/13: Move tests to separate file

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 8532df85cc9a65fde2afdfff2c7b8c8c6ec56dd2 Author: Mattias Engdegård Commit: Mattias Engdegård Move tests to separate file Put all tests in a separate file, xr-test.el, and use ert. Byte-compilation is now clean. --- xr-test.el | 228

[elpa] externals/xr 4bf6043 05/13: Export xr-pp-rx-to-str and fix a typo

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 4bf6043ef79024c27149611c09b8b602f4590b5b Author: Mattias Engdegård Commit: Mattias Engdegård Export xr-pp-rx-to-str and fix a typo Rename xr--pp-rx-to-str to xr-pp-rx-to-str for external use, and fix a typo in the doc string of xr-pp.

[elpa] externals/xr e8ec2d9 07/13: Add reference to the pcre2el package

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit e8ec2d9d7a0e65aeb888da353b9d079285787c07 Author: Mattias Engdegård Commit: Mattias Engdegård Add reference to the pcre2el package --- xr.el | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/xr.el b/xr.el index 761cac7..5a32a52

[elpa] externals/xr c2ede95 08/13: Improved errors for bad \s and \c sequences

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit c2ede958dec3e13a28549ae00782bf4f5d11a6fc Author: Mattias Engdegård Commit: Mattias Engdegård Improved errors for bad \s and \c sequences --- xr.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xr.el b/xr.el index 5a32a52..3133906 100644

[elpa] externals/xr 8425772 01/13: Sync with ELPA: compilation workaround

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 84257724a851a4cfd515f6c98dc840c437720b1c Author: Mattias Engdegård Commit: Mattias Engdegård Sync with ELPA: compilation workaround --- xr.el | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/xr.el b/xr.el index

[elpa] externals/xr updated (7ba1fc6 -> e1c7734)

2019-02-13 Thread Mattias Engdegrd
mattiase pushed a change to branch externals/xr. from 7ba1fc6 * xr.el: Fix compilation and use valid email address new 8425772 Sync with ELPA: compilation workaround new 8532df8 Move tests to separate file new 2a1de75 Correct parsing of group and backref

[elpa] externals/xr e1c7734 13/13: Merge branch 'externals/xr' of elpa.git (no actual change)

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit e1c7734639bf7afe9c848e81d6240d357a9d1242 Merge: f79d50c 7ba1fc6 Author: Mattias Engdegård Commit: Mattias Engdegård Merge branch 'externals/xr' of elpa.git (no actual change)

[elpa] externals/xr 8d052d6 09/13: Check for errors in \_

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 8d052d617f1e604143856b3b2b6657cac707d4c6 Author: Mattias Engdegård Commit: Mattias Engdegård Check for errors in \_ --- xr-test.el | 1 + xr.el | 14 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/xr-test.el b/xr-test.el

[elpa] externals/xr 4e2bd17 04/13: Export xr-pp-rx-to-str and fix a typo

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 4e2bd17df0e370ab6fd24c29711aa278575ca29b Author: Mattias Engdegård Commit: Mattias Engdegård Export xr-pp-rx-to-str and fix a typo Rename xr--pp-rx-to-str to xr-pp-rx-to-str for external use, and fix a typo in the doc string of xr-pp.

[elpa] externals/xr 2a1de75 03/13: Correct parsing of group and backref

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 2a1de75f192e351cd2ea7e4302756dbb9e995384 Author: Mattias Engdegård Commit: Mattias Engdegård Correct parsing of group and backref Parse groups and backrefs more carefully. In particular, there is no group 0; (?0:) is illegal and \0 means 0. ---

[elpa] externals/xr 37b2bcb 06/13: Merge branch 'master' of https://github.com/mattiase/xr

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 37b2bcbe45f6f06c18109ae071567f436c079541 Merge: 4bf6043 4e2bd17 Author: Mattias Engdegård Commit: Mattias Engdegård Merge branch 'master' of https://github.com/mattiase/xr

[elpa] externals/xr 0331e00 10/13: Recognise \sW as alias for \sw

2019-02-13 Thread Mattias Engdegrd
branch: externals/xr commit 0331e0055f964218d068e99c8aeb09225a8afe41 Author: Mattias Engdegård Commit: Mattias Engdegård Recognise \sW as alias for \sw The syntax class W appears to be an undocumented alternative to w, and \sW has been spotted at least once in the wild. ---

[elpa] reference refs/remotes/elpa/externals/xr deleted (was 7ba1fc6)

2019-02-12 Thread Mattias Engdegrd
mattiase pushed a change to reference refs/remotes/elpa/externals/xr. was 7ba1fc6 * xr.el: Fix compilation and use valid email address The revisions that were on this reference are still contained in other references; therefore, this change does not discard any commits from the

[elpa] reference refs/remotes/elpa/externals/xr created (now 7ba1fc6)

2019-02-12 Thread Mattias Engdegrd
mattiase pushed a change to reference refs/remotes/elpa/externals/xr. at 7ba1fc6 * xr.el: Fix compilation and use valid email address No new revisions were added by this update.

<    1   2   3   4