From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#58992: 28.2; "lax space matching" no longer works Date: Fri, 4 Nov 2022 16:00:02 +0100 Message-ID: <20221104150002.GU9807@zira.vinc17.org> References: <87tu3gasjn.fsf@zira.vinc17.org> <83iljw6kbk.fsf@gnu.org> <20221103172157.GB9807@zira.vinc17.org> <83h6zf7w53.fsf@gnu.org> <20221104033038.GK9807@zira.vinc17.org> <83v8nv5gnz.fsf@gnu.org> <20221104101513.GM9807@zira.vinc17.org> <83k04b54f4.fsf@gnu.org> <87wn8aj017.fsf@gmail.com> <83zgd64y08.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1711"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+51 (a318ca5a) vl-149028 (2022-10-21) Cc: Robert Pluim , 58992@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 04 16:02:46 2022 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 1oqyDW-0000Gg-6a for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Nov 2022 16:02:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqyCq-0006aZ-Rw; Fri, 04 Nov 2022 11:02:05 -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 1oqyBr-0006Or-9x for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 11:01:23 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqyBq-0006r4-KK for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqyBq-0007bu-1k for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Nov 2022 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58992 X-GNU-PR-Package: emacs Original-Received: via spool by 58992-submit@debbugs.gnu.org id=B58992.166757400929178 (code B ref 58992); Fri, 04 Nov 2022 15:01:02 +0000 Original-Received: (at 58992) by debbugs.gnu.org; 4 Nov 2022 15:00:09 +0000 Original-Received: from localhost ([127.0.0.1]:54536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqyAz-0007aY-4W for submit@debbugs.gnu.org; Fri, 04 Nov 2022 11:00:09 -0400 Original-Received: from joooj.vinc17.net ([155.133.131.76]:52248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqyAt-0007ZE-Tu for 58992@debbugs.gnu.org; Fri, 04 Nov 2022 11:00:07 -0400 Original-Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 67F4A2E6; Fri, 4 Nov 2022 16:00:02 +0100 (CET) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id 207E82800196; Fri, 4 Nov 2022 16:00:02 +0100 (CET) Content-Disposition: inline In-Reply-To: <83zgd64y08.fsf@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247085 Archived-At: On 2022-11-04 16:04:07 +0200, Eli Zaretskii wrote: > > From: Robert Pluim > > Cc: Vincent Lefevre , 58992@debbugs.gnu.org > > Date: Fri, 04 Nov 2022 14:56:36 +0100 > > > > >>>>> On Fri, 04 Nov 2022 13:45:35 +0200, Eli Zaretskii said: > > >> A character alternative can also specify named character classes > > >> (*note Char Classes::). This is a POSIX feature. [...] > > >> > > >> You must not change its behavior! Making it depend on the major mode > > >> is even worse. > > > > Eli> Too late for such changes, sorry. Emacs interprets [:space:] like > > Eli> that since at least Emacs 22, if not before. > > > > Would it help if it said "This is based on a POSIX feature, but not > > 100% identical"? > > No. But we can remove that sentence, since it doesn't add anything to > the text. Done. IMHO, Section "Syntax of Regular Expressions" (for both Emacs and Elisp) should warn that the meaning of a regular expression may depend on the major mode. Moreover, the [[:space:]\n]+ suggestion for search-whitespace-regexp should be changed to something that does not use [:space:], as there is no guarantee that the usual whitespace characters (e.g. space and tab characters) have whitespace syntax. The manual says: @item Whitespace characters: @samp{@ } or @samp{-} Characters that separate symbols and words from each other. Typically, whitespace characters have no other syntactic significance, and multiple whitespace characters are syntactically equivalent to a single one. Space, tab, and formfeed are classified as whitespace in almost all major modes. But for Python, multiple whitespace characters are not syntactically equivalent to a single one. So in a Python major mode, the user would not want to use [:space:] for searching. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)