From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65347: 29.1; Underscore in query replace prevents case-matching Date: Sat, 19 Aug 2023 10:52:02 -0400 Message-ID: References: <838raa6syr.fsf@gnu.org> <83o7j451iu.fsf@gnu.org> <83wmxs2p52.fsf@gnu.org> <83msyn37jn.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32388"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: sbaugh@janestreet.com, 65347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 19 16:53:14 2023 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 1qXNKC-0008B2-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 16:53:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXNK2-0001io-T7; Sat, 19 Aug 2023 10:53:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXNK1-0001hU-FJ for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 10:53:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXNK1-0006zn-7N for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 10:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXNK2-0001My-7G for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 10:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Aug 2023 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65347 X-GNU-PR-Package: emacs Original-Received: via spool by 65347-submit@debbugs.gnu.org id=B65347.16924567405216 (code B ref 65347); Sat, 19 Aug 2023 14:53:02 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 19 Aug 2023 14:52:20 +0000 Original-Received: from localhost ([127.0.0.1]:52107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXNJL-0001M3-JN for submit@debbugs.gnu.org; Sat, 19 Aug 2023 10:52:19 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXNJI-0001Lo-GP for 65347@debbugs.gnu.org; Sat, 19 Aug 2023 10:52:17 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B49AD4404E2; Sat, 19 Aug 2023 10:52:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1692456724; bh=v+sooDoTime2Bn9fvZpAhNGvexIOpb1Fa0o4DqgYSsA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BU5PcpaK1sMeMJShilP8rsAG52HRCwvkL7lTyMrH/fJdCrJb6gYI+uYC+BGu7Zwp6 f5/Z+TsGP8BsP0YSlRyoYrnLe2G/v98duLwsml2JK8icjdef7wRtnR3FgQMAQgYjs/ vKksQ34ukrOgQmUE7CK50qzvY64qBQZpwTGpCk4dejaeH/FVdCJpDbfKaC6gxdeNmk pWzPKSh2Yep/gtia4n/anaivd9QDtKFl2Jjg4cSw/D2tNYhnqRE+HywQ4bieWcl8U0 ldCQb+TsX92/mm5DgKvsIiIz1Z9PXNf9TvGbwERk9qalmuk4AANp9CciYYCnRAwdUC 3Dp+bK1PLQQvA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2FE02440CAB; Sat, 19 Aug 2023 10:52:04 -0400 (EDT) Original-Received: from pastel (unknown [45.72.228.154]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 00CB51201E5; Sat, 19 Aug 2023 10:52:03 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Sat, 19 Aug 2023 10:39:02 -0400") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267881 Archived-At: Stefan Monnier [2023-08-19 10:39:02] wrote: > When the guesswork is wrong I find it cumbersome to fix it. > I'd like to be able to edit it right there and that the result > is remembered for the next time the same capitalization is found. Admittedly, another problem is that I'm usually looking at the buffer text that's about to be changed, rather than looking at the minibuffer showing me what the text will change to, so I usually notice only after the fact that the change was wrong :-( So maybe what I want is something like: 1. like we do now, highlight the text to be changed and ask y/n whether to make the change (I likely won't see the exact question in the minibuffer at that point). 2. if I say `y` but the capitalization of the change is the result of guesswork, stop right after making the change, highlight it, and ask again whether that was good, letting me edit it before continuing. Similarly when I say `!` it should stop after every change that encountered a not-yet-seen capitalization. Stefan