bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41445: 26.3; Query-replace triggers "match data clobbered by..."


From: Mattias Engdegård
Subject: bug#41445: 26.3; Query-replace triggers "match data clobbered by..."
Date: Sat, 23 May 2020 15:08:21 +0200

23 maj 2020 kl. 14.37 skrev Philipp Stephani <p.stephani2@gmail.com>:

> "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.)

Thanks for the reference. Nevertheless, functions do use save-match-data for 
the benefit of their callers every now and then. The practice is fairly 
widespread, more so for functions that are otherwise side-effect-free. It's a 
matter of reasonable expectation, not following the manual to the letter.

For that matter, there are few functions explicitly documented not to clobber 
the match data, not counting the automatically inserted statement for functions 
marked pure or side-effect-free.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]