[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29343: 27.0.50; Match data doesn't contain elements for non-matched
bug#29343: 27.0.50; Match data doesn't contain elements for non-matched subgroups
Fri, 19 Apr 2019 14:54:01 -0400
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
Philipp Stephani <address@hidden> writes:
>> >> You can get that result by passing a list of the expected length as the
>> >> REUSE argument to match-data:
>> > True, but that also requires knowing the expected length. In the most
>> > general case this should work for unknown regular expressions.
> The context here is https://github.com/magnars/s.el/pull/117.
Ah, I see, the problem is that s-match is trying to present a "nicer"
interface, so it doesn't have a REUSE argument.
> That Emacs doesn't behave this way is surprising and should at least
> be documented.
Yeah, no argument there.