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 20:03:52 -0400 Message-ID: References: <838raa6syr.fsf@gnu.org> <83o7j451iu.fsf@gnu.org> <83wmxs2p52.fsf@gnu.org> <83msyn37jn.fsf@gnu.org> <83y1i7xf0n.fsf@gnu.org> <83pm3iyhcn.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="21992"; 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 Sun Aug 20 02:05:15 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 1qXVwQ-0005Uu-Rw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 02:05:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXVwH-0000Ys-Pw; Sat, 19 Aug 2023 20:05:07 -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 1qXVwF-0000Yf-4w for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 20:05:03 -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 1qXVwD-0004Dj-72 for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 20:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXVwE-000793-Ee for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 20:05: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: Sun, 20 Aug 2023 00:05: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.169248984927403 (code B ref 65347); Sun, 20 Aug 2023 00:05:02 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 20 Aug 2023 00:04:09 +0000 Original-Received: from localhost ([127.0.0.1]:52473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXVvN-00077t-E1 for submit@debbugs.gnu.org; Sat, 19 Aug 2023 20:04:09 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXVvL-00077h-Mp for 65347@debbugs.gnu.org; Sat, 19 Aug 2023 20:04:07 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DDFEA440024; Sat, 19 Aug 2023 20:04:00 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1692489835; bh=Vk+mMuoZWv0xMaREA8JDqmzhQb/rFdqgEbCerCw0HWI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WQG4If1gq7e60j0+lakx713SEG80TRHVrO1bpI+6FTVQtvTflXQFrj/NrFRjBT1op 0pj6xtZq0L+QYYguO8cLpOEQJHh/Xd9unIXc2hQ3OvCwZXw5lrMEI1S2hPJ8C5YwxD /4OQrXZ+gNfkGcAz72GUwlE8Po0i7lSynEYGLJWu6VCfmC0Y4ZjagX45i29JHZq5d3 5kElZI8IJDAiyJv45qvsJVD2AAO+/EyASW2WTIX9XzVrnh1DCtjRHhdE5lXfZ0CTtT otbFoep1VolnSIYv0p7LwpPunABNtHqE3KK4/o6EEBZQ+aG0cyUERofXeCMEu+JJAt kySqt7magzVvQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 57B2E4413E5; Sat, 19 Aug 2023 20:03:55 -0400 (EDT) Original-Received: from pastel (unknown [45.72.228.154]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0CA99120298; Sat, 19 Aug 2023 20:03:54 -0400 (EDT) In-Reply-To: <83pm3iyhcn.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Aug 2023 22:14:48 +0300") 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:267928 Archived-At: >> 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. I guess YMMV, but my experience is that the mapping is usually fixed (at least "per search&replace"), and in the OP's case it is as well. Stefan