From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#46783: Catch mistaken (query-replace "a" "a") Date: Sun, 28 Feb 2021 07:07:48 +0800 Message-ID: <87im6dt8hn.5.fsf@jidanni.org> References: <87o8g7hjfu.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32147"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46783@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 04:16:39 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGCZS-0008Gs-KV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 04:16:38 +0100 Original-Received: from localhost ([::1]:41938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGCZR-0007NT-NO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 22:16:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGCYs-00075k-BN for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 22:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGCYs-0006Tu-4E for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 22:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGCYs-0007xl-0F for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 22:16:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87o8g7hjfu.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2021 03:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 46783-submit@debbugs.gnu.org id=B46783.161448212330534 (code B ref 46783); Sun, 28 Feb 2021 03:16:01 +0000 Original-Received: (at 46783) by debbugs.gnu.org; 28 Feb 2021 03:15:23 +0000 Original-Received: from localhost ([127.0.0.1]:45655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGCYF-0007wQ-2n for submit@debbugs.gnu.org; Sat, 27 Feb 2021 22:15:23 -0500 Original-Received: from cross.elm.relay.mailchannels.net ([23.83.212.46]:32363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGCY9-0007wE-PW for 46783@debbugs.gnu.org; Sat, 27 Feb 2021 22:15:21 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7C9F5219EC; Sun, 28 Feb 2021 03:15:16 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a49.g.dreamhost.com (100-96-17-38.trex.outbound.svc.cluster.local [100.96.17.38]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 02A1921A3A; Sun, 28 Feb 2021 03:15:15 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a49.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.17.38 (trex/6.0.2); Sun, 28 Feb 2021 03:15:16 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Power-Drop: 040d0d060a14b5a4_1614482116273_3361681072 X-MC-Loop-Signature: 1614482116273:420975010 X-MC-Ingress-Time: 1614482116273 Original-Received: from pdx1-sub0-mail-a49.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTP id B2B5F7E583; Sat, 27 Feb 2021 19:15:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=Gc0kZqGXULUVxn9b+LTPQ7qSMAM=; b=VAjXAz7UcRMqn QMph88eACUwvTUKmWxnbItynmKLwgV4v3mLUhJkifw88+F3w7iq5PHuUCuKJeLut BlM0odG+KZuNJWjgfbJmksJZwqN/5AItWPHkpj2hbnWL9NFJXziCIcsZchRGKBhA wxtr3Vk31agmvzFQLb+JSXk2WZ3ajg= Original-Received: from jidanni.org (114-46-60-234.dynamic-ip.hinet.net [114.46.60.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTPSA id 4E4487E4FC; Sat, 27 Feb 2021 19:15:14 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a49 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201005 Archived-At: >>>>> "RMS" == Richard Stallman 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.