Subject: Re: bug#46783: Catch mistaken (query-replace "a" "a")

From: Robert Pluim <[email-masked]>
Date: Fri, 26 Feb 2021 10:49:16 +0100

>>>>> On Fri, 26 Feb 2021 09:57:09 +0100, Lars Ingebrigtsen <[email-masked]> said:

    Lars> 積丹尼 Dan Jacobson <[email-masked]> writes:
    >> One might say "well there are still some uses for replacing the same
    >> thing with itself." No, wrong.

    Lars> There is -- to remove text properties.

    Lars> I'm not sure that's a compelling use case, though.

I find the following quite useful:

(require 'char-fold)
(setq replace-char-fold t)
C-x 8 RET e1 RET
(goto-char (point-min)
M-x query-replace RET a RET a

Robert
--