emacs-devel
[Top][All Lists]
Advanced

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

Re: Scan of regexp mistakes


From: Mattias Engdegård
Subject: Re: Scan of regexp mistakes
Date: Sat, 9 Mar 2019 14:09:49 +0100

8 mars 2019 kl. 18.13 skrev Paul Eggert <address@hidden>:
> 
>> searching for A-z uncovers more suspect regexps, some of which aren't found 
>> by the trawler.
> 
> I wonder where those all came from? I attempted to fix them in the attached.

Very good, thanks, just this last one:

--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -239,7 +239,7 @@ a case simply use the directory containing the changed 
file."
     ;; wrongly with a non-date line existing as a random note.  In
     ;; addition, using any kind of fixed setting like this doesn't
     ;; work if a user customizes add-log-time-format.
-    ("^[0-9-]+ +\\|^ \\{11,\\}\\|^\t 
\\{3,\\}\\|^\\(Sun\\|Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\) [A-z][a-z][a-z] 
[0-9:+ ]+"
+    ("^[0-9-]+ +\\|^ \\{11,\\}\\|^\t 
\\{3,\\}\\|^\\(Sun\\|Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\) [A-Z][a-z][a-z] 
[0-9:+ ]+"

The [A-z] should become [A-Za-z] rather than [A-Z], right?




reply via email to

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