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: Thu, 17 Aug 2023 16:26:35 +0300 Message-ID: <83il9d6bqs.fsf@gnu.org> References: <838raa6syr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20886"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65347-done@debbugs.gnu.org To: Spencer Baugh , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 17 15:27:24 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 1qWd23-00058u-8j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 15:27:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWd1k-0004Dh-14; Thu, 17 Aug 2023 09:27:04 -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 1qWd1i-0004DN-Qx for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 09:27: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 1qWd1i-00046l-Gr for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 09:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWd1i-00032C-DL for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 09:27:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Aug 2023 13:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65347 X-GNU-PR-Package: emacs Mail-Followup-To: 65347@debbugs.gnu.org, eliz@gnu.org, sbaugh@janestreet.com Original-Received: via spool by 65347-done@debbugs.gnu.org id=D65347.169227880611628 (code D ref 65347); Thu, 17 Aug 2023 13:27:02 +0000 Original-Received: (at 65347-done) by debbugs.gnu.org; 17 Aug 2023 13:26:46 +0000 Original-Received: from localhost ([127.0.0.1]:42959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWd1R-00031T-Sz for submit@debbugs.gnu.org; Thu, 17 Aug 2023 09:26:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWd1M-000318-Km for 65347-done@debbugs.gnu.org; Thu, 17 Aug 2023 09:26: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 1qWd19-0003y0-TY; Thu, 17 Aug 2023 09:26:33 -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=XrDkzpBQOzAdzkjm1ZlIHW39vPOJtnOMtOGdEA7WZmM=; b=jYgqIrklfjNC +KRYU+kT/ufMqrDI9XpfbP1ftDgZmhplJOGmcYYfr/MNK11xAcQ0Cd+LnjzRJ8mJEh2hCXGHUWTKA hY7cnuB+Rxusi6Iz766y22F0luM7ADJC/xOyj/BO0dGURJ4BR+TRTU2TJC4dzNNhgaiNGffbRycgc w4PGjJIKk8s+Ib1A8Mw0xUMVL9MGb++q0l37saIaQML1pVKQZXysazKbLPmwaUaETWf0sRgDYT8JX 9x1+ojOjedJMT+9RZPV8V50WCM3JTGtKCFbSeJxvISRhu084W2oXNAZiPIWkwxrP2LinNAJqHc95Z voq0RK//4lj1EjtX3m0IzQ==; In-Reply-To: (message from Spencer Baugh on Thu, 17 Aug 2023 08:42:35 -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:267658 Archived-At: > From: Spencer Baugh > Cc: 65347@debbugs.gnu.org > Date: Thu, 17 Aug 2023 08:42:35 -0400 > > Eli Zaretskii writes: > > > These subtleties come up from time to time, so I think it's high time > > we documented that (in the hope this will stop this from popping up), > > so I've now done so on the emacs-29 branch. > > > > I think this is all we should do here, as the behavior is correct and > > justified, has been like that since time immemoriam, and we should not > > change it, therefore. > > Ah, that makes sense! I have no further complaint then and we should be > able to close the bug. Done now. > 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? > > Maybe some kind of escaping? I'm not aware of any such way. The code explicitly checks the syntax to be 'word' or not 'word'. But maybe Stefan has some insights? You could, of course, make a wrapper command that would modify the syntax table before invoking the real thing.