[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46783: Catch mistaken (query-replace "a" "a")
From: |
Robert Pluim |
Subject: |
bug#46783: Catch mistaken (query-replace "a" "a") |
Date: |
Fri, 26 Feb 2021 10:49:16 +0100 |
>>>>> On Fri, 26 Feb 2021 09:57:09 +0100, Lars Ingebrigtsen <larsi@gnus.org>
>>>>> said:
Lars> 積丹尼 Dan Jacobson <jidanni@jidanni.org> 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
--