From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: Re: Embedded modifiers in the regex engine Date: Sat, 27 Feb 2016 17:50:01 -0800 Message-ID: <87wpppioxi.fsf@secretsauce.net> References: <87ziupinhq.fsf@secretsauce.net> <83oab4g407.fsf@gnu.org> <83mvqnet3t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456624237 23187 80.91.229.3 (28 Feb 2016 01:50:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2016 01:50:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 28 02:50:26 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aZqV8-0005La-33 for ged-emacs-devel@m.gmane.org; Sun, 28 Feb 2016 02:50:26 +0100 Original-Received: from localhost ([::1]:57053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZqV4-0003Qw-5W for ged-emacs-devel@m.gmane.org; Sat, 27 Feb 2016 20:50:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZqUr-0003Oh-HT for emacs-devel@gnu.org; Sat, 27 Feb 2016 20:50:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZqUm-0007B3-IL for emacs-devel@gnu.org; Sat, 27 Feb 2016 20:50:09 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZqUm-0007AP-G5 for emacs-devel@gnu.org; Sat, 27 Feb 2016 20:50:04 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DC635208DE for ; Sat, 27 Feb 2016 20:50:02 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 27 Feb 2016 20:50:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=GJFHD b/IkcBNBAH+uMiHA0QRCBI=; b=B9vP0lCmlE6ikFR5kpe22Ly7oHEVpvm6pRdhh +Y6D5KWd2YYYxqb0gt+6x2S9NSfbbKSXTvD19iVhTjZiRiSSIJycY3r74V4cfFD2 q+Y14z9LpTdFjI7iLms8vxBrEwAzygFebG79hL6ka4fFf1PCZXkxSzOUPZKU7MOv jJ6f2s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=GJFHDb/IkcBNBAH+uMiHA0QRCBI=; b=ndcFb Gr6Cub/VF45OFSfRXVkkQ7u8F0OHqW/Wjtpxzjrqllxn8B3ha359U9KVuT9DI7vQ yp4nDlcBPm3cvx3CTJ/KlxsGMHul++5RUfMfyut6pY2CoTq7gY5ZibFQTLVXgdkp 9MYSc8XxwSIQsW0WyfhyNASFbpy1J0jJtVpKus= X-Sasl-enc: gMwqR42aMs5gruhS8V4di/ZxbG7afhbzXmETM3YTXNRR 1456624202 Original-Received: from shorty.local (174-28-73-53.albq.qwest.net [174.28.73.53]) by mail.messagingengine.com (Postfix) with ESMTPA id 856B96801A0; Sat, 27 Feb 2016 20:50:02 -0500 (EST) Original-Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1aZqUj-0004JP-7m; Sat, 27 Feb 2016 17:50:01 -0800 User-agent: mu4e 0.9.11; emacs 25.0.90.1 In-reply-to: <83mvqnet3t.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200736 Archived-At: Eli Zaretskii writes: >> From: Dima Kogan >> Date: Thu, 25 Feb 2016 23:19:32 -0800 >> CC: emacs-devel@gnu.org >> >> I'm looking at importing the regex test suite in glibc to emacs. >> Would this be possible even if the copyright holders of those tests >> haven't assigned their work to the fsf? These are tests and not part >> of emacs on some level, so would that make it ok? > > If the test suite is GPL v3+, I don't think there should be a > problem If only. Some of the test cases in glibc are their own (LGPL) and some others came from other projects (boost, BSD, MIT). To be clear, I'm talking about the test cases themselves, not the code that evaluates the tests. Does this mean we need to write our own test if we want them? I did write an evaluator for one of the set of tests. It told me that the emacs regexen don't support the [.xxx.] and [=xxx=] constructs, which we already know. It also told me that the glibc regex engine throws an error when you give it an invalid range, such as [b-a], but emacs silently matches nothing. I think this is a bug, but probably not one that's worth fixing on its own. >From the earlier emails it wasn't obvious if there was already a long-term plan to replace the regex engine. Is there such a plan? What do we hope to move to? Thanks!