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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/xr ebf9fe2f12 2/2: Describe file-name specific diagnost


From: ELPA Syncer
Subject: [elpa] externals/xr ebf9fe2f12 2/2: Describe file-name specific diagnostics in README
Date: Fri, 24 Mar 2023 10:59:58 -0400 (EDT)

branch: externals/xr
commit ebf9fe2f1246cdce4328799e5fbf30b4e2dcf17d
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Mattias EngdegÄrd <mattiase@acm.org>

    Describe file-name specific diagnostics in README
---
 README | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/README b/README
index ee1dd898a1..c50f4de0f4 100644
--- a/README
+++ b/README
@@ -161,6 +161,22 @@ The xr package can be used interactively or by other code 
as a library.
     A pattern that only matches a non-empty string occurs right after
     an end-of-text anchor (\'). This combination can never match.
 
+  - Use \` instead of ^ in file-matching regexp
+  - Use \' instead of $ in file-matching regexp
+
+    In a regexp used for matching a file name, newlines are usually
+    not relevant. Line-start and line-end anchors should therefore
+    probably be replaced with string-start and string-end,
+    respectively. Otherwise, the regexp may fail for file names that
+    do contain newlines.
+
+  - Possibly unescaped '.' in file-matching regexp
+
+    In a regexp used for matching a file name, a naked dot is usually
+    more likely to be a mistake (missing escaping backslash) than an
+    actual intent to match any character except newline, since literal
+    dots are very common in file name patterns.
+
   - Uncounted repetition
 
     The construct A\{,\} repeats A zero or more times which was



reply via email to

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