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: Fri, 18 Aug 2023 09:04:57 +0300 Message-ID: <83o7j451iu.fsf@gnu.org> References: <838raa6syr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21923"; 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 Fri Aug 18 08:05:38 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 1qWsc5-0005Un-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 08:05:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWsbi-0003yS-FR; Fri, 18 Aug 2023 02:05:14 -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 1qWsbY-0003w9-0N for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 02:05:04 -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 1qWsbW-0002Bo-Dg for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 02:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWsbW-0008E7-Jl for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 02:05: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: Fri, 18 Aug 2023 06: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.169233870031603 (code B ref 65347); Fri, 18 Aug 2023 06:05:02 +0000 Original-Received: (at 65347) by debbugs.gnu.org; 18 Aug 2023 06:05:00 +0000 Original-Received: from localhost ([127.0.0.1]:45940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWsbU-0008Df-3w for submit@debbugs.gnu.org; Fri, 18 Aug 2023 02:05:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWsbS-0008DN-G2 for 65347@debbugs.gnu.org; Fri, 18 Aug 2023 02:04:59 -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 1qWsbL-0002Ax-Ng; Fri, 18 Aug 2023 02:04:51 -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=T2Mtx6o/gRBJxmgp6J7NjcBkAbYL8FteIW7lmTov9VY=; b=hGfTuuptIgm7 +rS0wntPaSxFz8s7vQ62rz8OWDj2DLxjNdZBCQGadR1UKkDsCU3KP4ISb5UQ9gd52+GvEy/QW5r1S A3w4bq7PlNOJeGx9uDKEL5qg69wmkT2pZwxgSD8rDOy2h7rm+63jdWCaCSRXFe0tQzr0fNhnlDvw9 y6pC4C5qREELSr/E3PFPIyLEYs8ivu6dCHIVY65t27bnSr4sTQE3V6r4T346hek9Iq1dBaqVcCLow oM0eu+gJ3diHpU2WpWFYHlBPjaw0JA17+XDegG5aRAEE9mDgv/T0NgBuKb/GuKPQFV8MrbFWJhLAY 42/Fjk/lJQ4GB+Qiq0GJCQ==; In-Reply-To: (message from Stefan Monnier on Thu, 17 Aug 2023 22:04:53 -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:267722 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , 65347@debbugs.gnu.org > Date: Thu, 17 Aug 2023 22:04:53 -0400 > > > Although, a further relevant question: is there some way to make _ not > > be a word separator, in this specific context? Without changing the > > syntax table of the buffer overall? So that foo_bar is interpreted as > > one word? > > There's `superword-mode`, but I suspect that query-replace does not > honor it in this case. Could be considered as a bug in > `superword-mode`. Actually, I think it's a bug in replace-match: it doesn't honor find-word-boundary-function-table. I think it should. Patches welcome.