From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65347: 29.1; Underscore in query replace prevents case-matching Date: Sat, 19 Aug 2023 17:50:32 +0300 Message-ID: <83y1i7xf0n.fsf@gnu.org> References: <838raa6syr.fsf@gnu.org> <83o7j451iu.fsf@gnu.org> <83wmxs2p52.fsf@gnu.org> <83msyn37jn.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, 65347@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 19 16:51:31 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 1qXNIY-0005zU-Hj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 16:51:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXNI6-0001WU-Qw; Sat, 19 Aug 2023 10:51: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 1qXNI5-0001VT-Gm for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 10:51: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 1qXNI5-0006mZ-8E for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 10:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXNI5-0001K6-Qj for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 10:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Aug 2023 14:51:01 +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.16924566315048 (code B ref 65347); Sat, 19 Aug 2023 14:51:01 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 19 Aug 2023 14:50:31 +0000 Original-Received: from localhost ([127.0.0.1]:52102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXNHb-0001JM-2Q for submit@debbugs.gnu.org; Sat, 19 Aug 2023 10:50:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXNHX-0001J8-PD for 65347@debbugs.gnu.org; Sat, 19 Aug 2023 10:50:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXNHQ-0006dQ-8R; Sat, 19 Aug 2023 10:50:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3WftffCsEdPWjBFqLKf3L7ursRAHe7G/ML6O4sltpFc=; b=LDxBFbaQaDMm QVZoL/2dwEW3PGgt8CPmR/l7i+gCsR6XNuqWO9nLh0ncKYVzUq+6K4BEUPPsXq9NIhtyiPDFup5z8 pjoDKAs3e6pXuG70fUxr9m7/m7R8hxVJBBvrPruv4Yent+TXvRWObq/kKVbP3ZscDL7WRIIFmMFL9 S1CXS2J03jOufvG6g3kZ/6sO3BEqaPr4DB1wI669N9nKmnH6Qf8FE0FTFu6dPEk+C5j4n44wYCsC9 oZpaKHFko6Y3qjnGZ23bzpCbbeWDc/NeMw9Gs9O58quYXPkHfpgQ4g7dOdf9yqudf09XxKwLRW6KV b/EEMhzcNtHEOVPpwXcm+w==; In-Reply-To: (message from Stefan Monnier on 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:267880 Archived-At: > From: Stefan Monnier > Cc: sbaugh@janestreet.com, 65347@debbugs.gnu.org > Date: Sat, 19 Aug 2023 10:39:02 -0400 > > >> Personally (as a user) the functionality I'd prefer is the following: > >> When the matched string does not have the same capitalization as the search > >> pattern, I'd like Emacs to guess what should be the capitalization of > >> the replacement and ask me to confirm its guess. > > This already happens? M-% shows you the replacement in the exact > > capitalization it will insert, _after_ the guesswork. And you are > > already requested to confirm each replacement. So what is missing? > > 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. If C-r is inconvenient, then I guess we need some minor variation of the existing commands e and E? And what do you mean by "remembered for the next time", when the only difference is in letter-case?