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#21278: char-fold isearch: space and newline still broken Date: Tue, 07 Sep 2021 09:19:53 +0300 Message-ID: <83sfygq54m.fsf@gnu.org> References: <8735qku8ic.fsf@gnus.org> <83o896s0qf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6368"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21278@debbugs.gnu.org, larsi@gnus.org, bruce.connor.am@gmail.com To: rms@gnu.org, Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 08:20:17 2021 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 1mNUSu-0001Rl-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 08:20:16 +0200 Original-Received: from localhost ([::1]:54724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNUSs-0006oe-O2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 02:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNUSg-0006mo-2X for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 02:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNUSf-0002Ps-Qm for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 02:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNUSf-0004YQ-Mq for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 02:20: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: Tue, 07 Sep 2021 06:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21278 X-GNU-PR-Package: emacs Original-Received: via spool by 21278-submit@debbugs.gnu.org id=B21278.163099560017494 (code B ref 21278); Tue, 07 Sep 2021 06:20:01 +0000 Original-Received: (at 21278) by debbugs.gnu.org; 7 Sep 2021 06:20:00 +0000 Original-Received: from localhost ([127.0.0.1]:55291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNUSd-0004Y6-NJ for submit@debbugs.gnu.org; Tue, 07 Sep 2021 02:19:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNUSb-0004Xs-P7 for 21278@debbugs.gnu.org; Tue, 07 Sep 2021 02:19:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38692) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNUSV-0002Ha-M1; Tue, 07 Sep 2021 02:19:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4194 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNUSO-00075E-MK; Tue, 07 Sep 2021 02:19:45 -0400 In-Reply-To: (message from Richard Stallman on Mon, 06 Sep 2021 23:17:45 -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" Xref: news.gmane.io gmane.emacs.bugs:213666 Archived-At: > From: Richard Stallman > Cc: larsi@gnus.org, 21278@debbugs.gnu.org, bruce.connor.am@gmail.com > Date: Mon, 06 Sep 2021 23:17:45 -0400 > > > I think that's because in Mail mode we have: > > > (char-syntax ?\n) => 32 ; SPC > > > whereas in *scratch*: > > > (char-syntax ?\n) => 62 ; > > > > And the regexp in search-whitespace-regexp is "\\s-+". > > That seems plausible. > > I still say it is a bug. Incremental search should not equate > newline with spaces, at least not by default. It is right to > treat newline as whitespace in other commands, but not in search. > > What would be a good fix? Change the syntax of newline? > What would be a good choice? No, I think we should leave the syntax of the newline alone, I bet too much depends on it. I think we should change the default value of search-whitespace-regexp instead. Building such mode-independent features on syntax properties is IME asking for trouble. Stefan, WDYT?