GNU bug report logs - #41445
26.3; Query-replace triggers "match data clobbered by..."

Previous Next

Package: emacs;

Reported by: ture <at> turepalsson.se (Ture Pålsson)

Date: Fri, 22 May 2020 05:56:01 UTC

Severity: normal

Tags: patch

Found in version 26.3

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: mattiase <at> acm.org, ture <at> turepalsson.se, monnier <at> iro.umontreal.ca, 41445 <at> debbugs.gnu.org
Subject: bug#41445: 26.3; Query-replace triggers "match data clobbered by..."
Date: Sat, 23 May 2020 16:07:05 +0300
> From: Philipp Stephani <p.stephani2 <at> gmail.com>
> Date: Sat, 23 May 2020 14:37:17 +0200
> Cc: Mattias Engdegård <mattiase <at> acm.org>, 
> 	Stefan Monnier <monnier <at> iro.umontreal.ca>, ture <at> turepalsson.se, 41445 <at> debbugs.gnu.org
> 
> > I thought we had some advice to Lisp programs not to assume that
> > match-data will be preserved, but maybe I'm misremembering.  Stefan,
> > do you remember something along these lines?
> 
> That's at least what the manual says
> (https://www.gnu.org/software/emacs/manual/html_node/elisp/Match-Data.html):
> "Notice that all functions are allowed to overwrite the match data
> unless they're explicitly documented not to do so."
> (Not that I like that statement, but it is current reality.)

Right, thanks.  I missed that.




This bug report was last modified 4 years and 364 days ago.

Previous Next


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