Subject: Re: bug#29343: 27.0.50; Match data doesn't contain elements for non-matched subgroups

From: Noam Postavsky <[email-masked]>
Date: Fri, 19 Apr 2019 14:54:01 -0400

Philipp Stephani <[email-masked]> 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.