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 12:02:03 -0400 Message-ID: References: <838raa6syr.fsf@gnu.org> <83o7j451iu.fsf@gnu.org> <83wmxs2p52.fsf@gnu.org> <83msyn37jn.fsf@gnu.org> <83wmxrxeie.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="3186"; 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 18:03:11 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 1qXOPv-0000b9-K7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 18:03:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXOPn-0002Bx-EI; Sat, 19 Aug 2023 12:03: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 1qXOPm-00028E-21 for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 12:03:02 -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 1qXOPl-00030l-OV for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 12:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXOPm-0003KL-GD for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 12:03: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 16:03: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.169246093512719 (code B ref 65347); Sat, 19 Aug 2023 16:03:02 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 19 Aug 2023 16:02:15 +0000 Original-Received: from localhost ([127.0.0.1]:52166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXOP0-0003J5-Ki for submit@debbugs.gnu.org; Sat, 19 Aug 2023 12:02:14 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXOOx-0003Il-LG for 65347@debbugs.gnu.org; Sat, 19 Aug 2023 12:02:13 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 32A3D1000EF; Sat, 19 Aug 2023 12:02:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1692460924; bh=LIyhfkaHuCqmBBHiOaqRMKwbxeGtT5irE8OKf6lSYgM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jh2g4PaD8QR+c9SvG2l3D7geXHbtZX2NNTq/rZVAIvlPX5aZakGJyagCTARALhY8o U4cLKMkM/c9bWWoQ+J1b70vI03Mp7foX3990ABJ9tRDkHWx8we6RSuuWC9BDM1WmaF HswXyivL0XXb9BcK6rUMCxUBfTAwZoWTjSU39wyC8mbj1vD1DOsAe8LEAP9l9M1Pvr 4ANwthcDts5YGoNkEhxy/45UOEFQHKLwTnRF7GZNqxnmuZd7rP77ms+8hGBxwej0AI PSXGnj+wfHtCY74UREzqy/ECys65cnYpphGZMCrYn3MMzq63jttHuAQoilHEDPovRy YNXem3YmhH6vA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 28B361000BD; Sat, 19 Aug 2023 12:02:04 -0400 (EDT) Original-Received: from pastel (unknown [45.72.228.154]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0113D120302; Sat, 19 Aug 2023 12:02:03 -0400 (EDT) In-Reply-To: <83wmxrxeie.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Aug 2023 18:01:29 +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:267888 Archived-At: >> Similarly when I say `!` it should stop after every change that >> encountered a not-yet-seen capitalization. > > Define "not yet seen capitalization". I'm replacing "foo" with "bar", so at the start we know for sure: - "foo" should be replaced by "bar" - that's it, anything else is guesswork We find "Foo", it's a not-yet-seen capitalization. We propose "Bar" (which the user may accept of modify). At that point we know: - "foo" should be replaced by "bar" - "Foo" should be replaced by "Bar" (or whichever alternative the user provided instead). - that's it, anything else is guesswork When we find "fOo", it's a not-yet-seen capitalization, so we have to ask the user again, ... Stefan