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 22:14:48 +0300 Message-ID: <83pm3iyhcn.fsf@gnu.org> References: <838raa6syr.fsf@gnu.org> <83o7j451iu.fsf@gnu.org> <83wmxs2p52.fsf@gnu.org> <83msyn37jn.fsf@gnu.org> <83y1i7xf0n.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="460"; 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 21:15:25 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 1qXRPw-000APJ-Ee for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 21:15:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXRPi-0001Xm-UW; Sat, 19 Aug 2023 15:15:10 -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 1qXRPZ-0001VP-Dt for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 15:15: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 1qXRPZ-00017j-5M for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 15:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXRPZ-0008Av-QB for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 15:15: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 19:15: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.169247248431386 (code B ref 65347); Sat, 19 Aug 2023 19:15:01 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 19 Aug 2023 19:14:44 +0000 Original-Received: from localhost ([127.0.0.1]:52304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXRPH-0008AA-PE for submit@debbugs.gnu.org; Sat, 19 Aug 2023 15:14:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXRPG-00089y-NO for 65347@debbugs.gnu.org; Sat, 19 Aug 2023 15:14:43 -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 1qXRP9-00014F-3P; Sat, 19 Aug 2023 15:14:35 -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=t1VdijXXEBKdecroK990N8A4AByLLlkn/0cxcA+rZ+o=; b=rFo44t7d4E8w jG/+kiC3LVFM+Tii8/KO8RSYIiAxxRyHngF8QZGbHWnSyYZpsLV3DDvN2Rp+SNAdo4M8rO0imOOvb nbx55A4O2TZwGxyEQ84OsVOzHcFMtX3kuyhF96os4CdYHEEqbW1MjL1Y6TBxJaCm5xgg5j/hTWMGL KBHjSomhtm6g+ZRhCVXLUV+RWmpwhNHWf7siRAmtbXWcdooCcELr1mYvG+m8NuyXoXO2DEGQRMEkH 5DV0eQgOTpHNrEyVja7h/XshpF6ct5VP0QJaqcGHv90lUIMCmuO/Mjnysvayzf5jF0xkdBrSp9bn7 4daNi1bJY1PP4HSic+joXw==; In-Reply-To: (message from Stefan Monnier on Sat, 19 Aug 2023 11:51:46 -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:267905 Archived-At: > From: Stefan Monnier > Cc: sbaugh@janestreet.com, 65347@debbugs.gnu.org > Date: Sat, 19 Aug 2023 11:51:46 -0400 > > > And what do you mean by "remembered for the next time", when the only > > difference is in letter-case? > > When it finds "FOo" and converts it to "Bar" and I change it to "BAr" it > should remember that mapping such that next time it finds that exact > same capitalization "FOo" it should use "BAr" as replacement. Is it really what happens in these cases? IME, the capitalization patterns, when they don't fit the heuristic, are inconsistent with one another, and bumping into one such "non-standard" replacement doesn't mean all those replacements after it will be necessarily "non-standard", let alone in the same way. IOW, I believe the best strategy is to keep replacing using the default heuristic, and leave it to the user to detect the rare deviations and fix them with ',' or 'C-r'.