GNU bug report logs - #29343
Match data doesn't contain elements for trailing non-matched subgroups

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Fri, 17 Nov 2017 20:12:01 UTC

Severity: minor

Found in version 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 29343 <at> debbugs.gnu.org
Subject: bug#29343: Match data doesn't contain elements for trailing non-matched subgroups
Date: Sat, 29 Jan 2022 16:40:05 +0100
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> It turns out that this is harder than I expected, because the
> information about the number of groups in the pattern isn't stored
> anywhere, and search_regs.num_regs may be different from the group
> count. If it turns out too hard to fix, the behavior should at least
> be documented.

I've now mentioned this in the doc string in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.