|
From: | Stefan Monnier |
Subject: | Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification |
Date: | Wed, 10 May 2017 07:55:17 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> I'm pretty sure surrounding the regexp in \(?:..\) will break no code >> at all. To me it's an absolute no-brainer that doesn't even merit >> any discussion. > That does not seem to be the case. Johan has identified a case > where a regexp that uses \| does not produce the same result as the "trim" > argument of split-string whether it uses \( \) or not. Of course it doesn't behave the same (otherwise, why bother changing it): "I'm pretty sure surrounding the regexp in \(?:..\) will break no code at all" doesn't mean that such code can't exist, but that I expect such code not to exist in the wild (or if it exists, it *suffers* from the current behavior rather than benefitting from it). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |