[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint a1c7bf5 06/11: Describe the ineffective backslas
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint a1c7bf5 06/11: Describe the ineffective backslash warning in README |
Date: |
Sat, 20 Jun 2020 05:57:41 -0400 (EDT) |
branch: externals/relint
commit a1c7bf56c03b0dac12a54c75e7183db9257497f1
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Describe the ineffective backslash warning in README
---
README | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/README b/README
index 7d25c5e..98e8a1d 100644
--- a/README
+++ b/README
@@ -214,6 +214,23 @@ skip-syntax-backward.
In general, A?, where A matches the empty string, can be
simplified to just A.
+ - Ineffective string escape '\X'
+
+ A backslash precedes a character that does not need escaping in a
+ string literal (any string, not just regexps), like in "hot\-dog".
+
+ If the backslash should be part of the string then it probably
+ needs to be doubled; otherwise, it is pointless and should be
+ removed to avoid confusion.
+
+ In Emacs versions older than 27.1, a left round or square bracket,
+ '(' or '[', at the very start of a line in a multi-line string
+ could sometimes fool the Emacs-Lisp mode into believing it to be
+ the start of a function, thus people sometimes precede such
+ brackets with an otherwise unnecessary backslash. However, there
+ is usually no reason to put backslashes before brackets in strings
+ in general.
+
- Suspect range '+-X' or 'X-+'
A character range with '+' as one of its endpoints is more often an
- [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, 2020/06/20
- [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 <=
- [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