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 08:50:04 +0300 Message-ID: <83msyn37jn.fsf@gnu.org> References: <838raa6syr.fsf@gnu.org> <83o7j451iu.fsf@gnu.org> <83wmxs2p52.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20910"; 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 07:51:22 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 1qXErp-0005GE-Su for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 07:51:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXErX-0001c0-Jk; Sat, 19 Aug 2023 01:51:03 -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 1qXErV-0001bs-Ur for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 01: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 1qXErV-0002Jw-MY for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 01:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXErW-0000Zd-1D for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 01:51:02 -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 05: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.16924242032133 (code B ref 65347); Sat, 19 Aug 2023 05:51:01 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 19 Aug 2023 05:50:03 +0000 Original-Received: from localhost ([127.0.0.1]:49232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXEqZ-0000YJ-0q for submit@debbugs.gnu.org; Sat, 19 Aug 2023 01:50:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXEqW-0000Xl-Pj for 65347@debbugs.gnu.org; Sat, 19 Aug 2023 01:50:01 -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 1qXEqO-0001kn-SD; Sat, 19 Aug 2023 01:49:52 -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=XKIhjK8JwPM/VFelyq+XB3P/FBdT0sgFMgZPO5gvEfE=; b=o7xXbJp3LAXD BLE+O/+1DTRbfWQlEWaWpJsJVAkmLZcAYdjRzcbd0k8q/MyxLPW95zR6cttHf5hPgkukGAn5WxwvI qwgeaVBJdNKXvhvfRrkh+QxlJMENtekLQVz7DsJ1I3nsAgrJEl1bXJ1hbbQ1eU0yebKGAzCRPxPGG sp+a+PceftoZT58X98e3Br8+lH67uvaUZhm1jDkUD+/j3Pa13MbYCM8RqsB2DwZ8oaOGhb5atKkx8 UXEVRI0rtFzD6Q3EXOaxSpusCGhFyrWCryuVcCoQSIhQgO5oWWQhRUSB62uwZOz38klVMmifV1oFf z4vtbyzm7y4A2emp84sZjg==; In-Reply-To: (message from Stefan Monnier on Fri, 18 Aug 2023 15:20:21 -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:267813 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , 65347@debbugs.gnu.org > Date: Fri, 18 Aug 2023 15:20:21 -0400 > > In my experience, there are enough slightly different circumstances that > it's going to be hard to cover all cases automatically. Perhaps, but this could only be established by auditing each case one by one. > 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?