From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: More re odditie [Was: regular expressions that match nothing] Date: Thu, 16 May 2019 22:31:35 +0200 Message-ID: References: <7a6b23f52418b093a4cf7a6db4306cf425533249.camel@acm.org> <87a7fnzd3u.fsf@web.de> <128EBFB8-78FF-47C3-8F28-C1EF91BFC4BB@acm.org> <84fcfdce-39d7-1ebb-c0c7-98aa05854646@lsv.fr> <87h89u4580.fsf@web.de> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="51183"; mail-complaints-to="usenet@blaine.gmane.org" Cc: phs , Stefan Monnier , emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 16 22:32:49 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRN3U-000D55-6o for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 22:32:49 +0200 Original-Received: from localhost ([127.0.0.1]:35773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRN3S-0000TF-Iv for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 16:32:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRN2f-0000Sx-Bi for emacs-devel@gnu.org; Thu, 16 May 2019 16:31:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRN2e-0001eX-GQ for emacs-devel@gnu.org; Thu, 16 May 2019 16:31:53 -0400 Original-Received: from mail84c50.megamailservers.eu ([91.136.10.94]:42982 helo=mail18c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRN2d-0001Q9-Sv for emacs-devel@gnu.org; Thu, 16 May 2019 16:31:52 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1558038698; bh=35XeFnr6OTGitSD8c75m1Hh78JqVRU3O0Ef61s8U7mQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=fw3tHSKV9SVT/i+70LGstTFEnQ0G/FAL7sNkwY6XGEDXVfA89zQqnqRqwdoxYGHvt dW281nJRxFhjD4TE8vNZpTDGD+qS51ai77DajoHSdBML8u6fYceqWffg9v3iPhnLOr zXfO0h0m3wxED1tJDM/O1d7wy5Ox4N7uGSH+0Ir4= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail18c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x4GKVZKj010400; Thu, 16 May 2019 20:31:37 +0000 In-Reply-To: <87h89u4580.fsf@web.de> X-Mailer: Apple Mail (2.3445.104.8) X-CTCH-RefID: str=0001.0A0B0208.5CDDC8AA.002E, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=c7eFvy1l c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=ClPiIcmiJwk-3_BV7EYA:9 a=CjuIK1q_8ugA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.94 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236599 Archived-At: 16 maj 2019 kl. 20.35 skrev Michael Heerdegen = : >=20 > BTW, while we are here: I'm also curious whether we want to add > nl, newline -> "\n" to rx. I mean we have nonl and space - only for > newlines one needs to use string syntax in rx. Maybe, but there is no special name for any other literal string. = `space' doesn't mean the space character but [[:space:]], or \s-, whose = exact meaning depends on the current syntax table. (Which is sometimes = very surprising; look at rfc2047-syntax-table!) `nonl' has plenty of = legacy -- the name is from SRE, and even in string regexps it has a = special convenience symbol. I would much rather see a clean, robust and expressive extension = mechanism for rx (`rx-constituents' does not count). There are various = hacks and libraries but it probably needs to be integrated.