[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17862: 24.3; regexp-opt docstring is incorrect
From: |
Andreas Schwab |
Subject: |
bug#17862: 24.3; regexp-opt docstring is incorrect |
Date: |
Tue, 01 Jul 2014 09:16:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Glenn Morris <rgm@gnu.org> writes:
> immerrr again wrote:
>
>> Also, the doc omits that PAREN may be a string to use as an open-paren.
>
> That's a weird, old, "feature". I wonder what the point of that is?
>
> (regexp-opt '("ab" "ac") "G") -> "Ga[bc]\\)"
(regexp-opt '("ab" "ac") "\\(?:") => "\\(?:a[bc]\\)"
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."