From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: :alnum: broken? Date: Sun, 23 Feb 2020 17:07:25 +0200 Message-ID: <838sktibpu.fsf@gnu.org> References: <86wo8flqct.fsf@stephe-leake.org> <86sgj3ljf0.fsf@stephe-leake.org> <18bd2b64-1c2f-055f-4fa0-092bdb1da531@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24015"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen_leake@stephe-leake.org, rms@gnu.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 23 16:08:16 2020 Return-path: Envelope-to: ged-emacs-devel@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 1j5srg-00069q-GI for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Feb 2020 16:08:16 +0100 Original-Received: from localhost ([::1]:53752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5srf-0006M0-Jr for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Feb 2020 10:08:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53029) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5srE-0005w4-Ir for emacs-devel@gnu.org; Sun, 23 Feb 2020 10:07:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5srD-0002el-J7; Sun, 23 Feb 2020 10:07:47 -0500 Original-Received: from [176.228.60.248] (port=2328 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j5sr2-0001rc-3J; Sun, 23 Feb 2020 10:07:37 -0500 In-reply-to: <18bd2b64-1c2f-055f-4fa0-092bdb1da531@cs.ucla.edu> (message from Paul Eggert on Sat, 22 Feb 2020 23:51:11 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245042 Archived-At: > From: Paul Eggert > Date: Sat, 22 Feb 2020 23:51:11 -0800 > Cc: emacs-devel@gnu.org > > On 2/22/20 7:49 PM, Richard Stallman wrote: > > Can we do something to report such errors? > > Yes, it would be easy to modify the Emacs regular expression parser to signal an > error for patterns like [:alnum:]. GNU grep has been reporting these as errors > ever since Paolo Bonzini changed it to do so in 2010, and it's been a win there. > However, Eli's the Emacs maintainer and he has not yet been convinced to change > GNU Emacs to be consistent with GNU grep. AFAIU, Richard suggested to emit a warning from the byte compiler. That might be a good-enough solution, better than signaling an error at run time, IMO.