GNU bug report logs - #46783
Catch mistaken (query-replace "a" "a")

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 25 Feb 2021 22:28:01 UTC

Severity: wishlist

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #27 received at 46783 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: 46783 <at> debbugs.gnu.org
Subject: Re: bug#46783: Catch mistaken (query-replace "a" "a")
Date: Sun, 28 Feb 2021 07:07:48 +0800
>>>>> "RMS" == Richard Stallman <rms <at> gnu.org> writes:

RMS> So it could say, "FROM-STRING and TO-STRING are identical -- are you serious?"

Excellent points.

And for those power users who really are always serious, there could be
a query-replace-skip-mental-health-check . Oops, I meant
query-replace-skip-identical-string-check,
or a dialog:

You have used identical strings for both FROM-STRING and TO-STRING.

Press:

b to blunder on ahead ("Don't question my logic. I have my reasons.")
! to blunder on ahead and remember this for the remainder of your days.
q to "quit while you are ahead."
x to always bomb out forever. No more late night cocktails.
d to launch the Emacs Eliza doctor program.
9 to call in a real doctor.
7 to show the Seven Signs of Senility checklist.




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

Previous Next


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