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

From: Mattias Engdegård <[email-masked]>
Date: Fri, 22 May 2020 14:21:04 +0200

22 maj 2020 kl. 14.07 skrev Eli Zaretskii <[email-masked]>:

> I think in ucs-normalize-hfs-nfd-post-read-conversion and
> ucs-normalize-hfs-nfd-pre-write-conversion.  IOW, so that this only
> affects encoding and decoding macOS file names.  WDYT?

Both of these call ucs-normalize-region, which makes it natural to save match data in that function. Conversely, anything that calls ucs-normalize-region would have to be wrapped, not just the two functions you mentioned. In other words, there seems to be no advantage in saving the match data in those functions, only disadvantages.