emacs-devel
[Top][All Lists]
Advanced

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

Re: Scan of Emacs regexp mistakes


From: Paul Eggert
Subject: Re: Scan of Emacs regexp mistakes
Date: Thu, 16 Apr 2020 09:08:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 4/16/20 3:37 AM, Mattias Engdegård wrote:
The remaining regexp glitches found by the latest sweep were fixed by the 
attached patch (now on master), except tramp-adb-prompt:

Thanks. One little question:

-    (while (re-search-forward "\\([ \t]*\n[ \t]*\\)+" nil t)
+    (while (re-search-forward "[ \t]*\\(?:\n[ \t]*\\)+" nil t)
       (replace-match " "))

Wouldn't it be better to use "[ \t]*\n[ \t\n]*"?



reply via email to

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