[Top][All Lists]

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

Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification

From: Andreas Schwab
Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification
Date: Wed, 10 May 2017 09:45:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

On Mai 10 2017, Eli Zaretskii <address@hidden> wrote:

>> From: Andreas Schwab <address@hidden>
>> Cc: Eli Zaretskii <address@hidden>,  Michael Heerdegen
>>  <address@hidden>,  Mark Oteiza <address@hidden>,
>>   address@hidden,  Johan Bockgård <address@hidden>,
>>   address@hidden
>> Date: Tue, 09 May 2017 18:37:47 +0200
>> > Ok, so we agree that we don't add \\( \\) to the regexp and that we expect 
>> > the caller to send a correct regexp as is the case for split-string, is 
>> > that correct ?
>> If you want to modify a regexp you need to make sure to preserve its
>> semantics.
> Can you give an example of a regexp whose semantics might change by
> adding \\(..\\)?

If you have any backrefs, their numbers change.


Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

reply via email to

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