From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Embedded modifiers in the regex engine Date: Wed, 24 Feb 2016 22:11:53 -0800 Message-ID: References: <87ziupinhq.fsf@secretsauce.net> Reply-To: John Wiegley NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456380737 7256 80.91.229.3 (25 Feb 2016 06:12:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 06:12:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dima Kogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 25 07:12:10 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 1aYp9m-0003AG-6v for ged-emacs-devel@m.gmane.org; Thu, 25 Feb 2016 07:12:10 +0100 Original-Received: from localhost ([::1]:40311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYp9l-00028e-HJ for ged-emacs-devel@m.gmane.org; Thu, 25 Feb 2016 01:12:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYp9h-00028W-02 for emacs-devel@gnu.org; Thu, 25 Feb 2016 01:12:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYp9c-0006tK-4I for emacs-devel@gnu.org; Thu, 25 Feb 2016 01:12:04 -0500 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:34061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYp9b-0006sk-TA for emacs-devel@gnu.org; Thu, 25 Feb 2016 01:12:00 -0500 Original-Received: by mail-pf0-x22d.google.com with SMTP id x65so27029137pfb.1 for ; Wed, 24 Feb 2016 22:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mail-followup-to:mime-version:content-type; bh=PlCA/SD4Uis0cgZjtFf6oYx87b26/KY0m0saq/ukOxU=; b=GXz63gByrlf3N9NZTPAbR1IgqTV9IKf+UsxBfzVv2UDv4mASOrcPxPorZPZxGg/dfF SOycbILKcMH90EaG6ABoczoQ5khxn6tpsn1U1jnZGHj0B5hfjYtSU3dIKRxzfPbnIWQA sIrvjlGlmLpqZw2obOru5U4QXgmXyzVqnohGZnF3irRUKQHw17B35dsu3t77iEICCpPm o5StxxlfLFZYC5DxSFC+HhwsKM1KT9VKADH2frvEKS3e/zMzUJ9izEehh3fJU3DqYhV8 9m1Q3mQMbu5i9wXrxzYNAl5kLTemdCufyUHIt35fqkkSyOJ+Nhl4potyAvLrHFVY26Gw 3cjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mail-followup-to:mime-version :content-type; bh=PlCA/SD4Uis0cgZjtFf6oYx87b26/KY0m0saq/ukOxU=; b=jT5bbf3UP5dSlv1AZQn/TR2wv2QMp8EeDZ/boMdrOwuLO3FuxvkthfsfIhr9LOeIcD v8OGMYXtjnSDXksDPVqpP6w8GfJnboZi4AFC4GLvtHZ2zNO8RcO1MOzunQiJHoEg9cGN ctcPq3X6i47TXniRUbdNCvjlTwPzkIyPMSNWiHIi7HyCfI00bWJISweqFg15ofoJ4WUX RU7ztDiCOklDJjnKVBLUHYXIjgTOvr4swCV1tgX83pGKHDT9eqknA5owrdMECNxa+hVv f4TZyJTapLRKf21eU5TXgfnXfKIlEprxX/tY3pmW2oEINxqgok1t3JJgLmeIIeXTmNC8 UXuQ== X-Gm-Message-State: AG10YOTyamGomQPUIMEpzEhlnF42uUDr75GGyw3UZVj8zULnTXE7ZkqaZRPMwG3VbaTL/Q== X-Received: by 10.98.34.84 with SMTP id i81mr59798919pfi.160.1456380719057; Wed, 24 Feb 2016 22:11:59 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id xu1sm9088680pab.31.2016.02.24.22.11.56 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Feb 2016 22:11:57 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 1697A1317868D; Wed, 24 Feb 2016 22:11:56 -0800 (PST) In-Reply-To: <87ziupinhq.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 24 Feb 2016 17:32:01 -0800") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Dima Kogan , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22d 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:200649 Archived-At: >>>>> Dima Kogan writes: > So for instance "\\(?i\\)asdf" would be interpreted as a case-folding regex > regardless of the value of case-fold-search. I think this would be a great > thing to have in general, but for the specific issues in the bugs above, > it'd make things simpler and more correct. This does sound promising. > Clearly this is a big change to a core component, so I want to talk about it > first. I looked at our regex implementation, and it looks possible to add > this. But I've seen talk of merging our regex implementation with the glibc > one, so the merge should clearly happen first. There's also been talking of rewriting the regex code, since it has acquired much baggage over the years. > Also I don't want to touch this without a test suite for our regex engine. > So that would need to happen beforehand as well. Absolutely. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2