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: Regexp matching Date: Mon, 08 Feb 2016 10:57:13 -0500 Message-ID: References: <83h9hmtg82.fsf@gnu.org> Reply-To: John Wiegley NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454947506 5541 80.91.229.3 (8 Feb 2016 16:05:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 16:05:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 08 17:04:59 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 1aSoJ8-00080r-Gq for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2016 17:04:58 +0100 Original-Received: from localhost ([::1]:46068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSoJ7-0003lh-Rc for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2016 11:04:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSoIP-0003SW-9k for emacs-devel@gnu.org; Mon, 08 Feb 2016 11:04:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSoIM-0006oa-66 for emacs-devel@gnu.org; Mon, 08 Feb 2016 11:04:13 -0500 Original-Received: from mail-yw0-x231.google.com ([2607:f8b0:4002:c05::231]:33935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSoIM-0006oW-2M for emacs-devel@gnu.org; Mon, 08 Feb 2016 11:04:10 -0500 Original-Received: by mail-yw0-x231.google.com with SMTP id h129so105279158ywb.1 for ; Mon, 08 Feb 2016 08:04:09 -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=4fhTbaOO6gPm4S2ZPJraDoPnA8P8mXKsES2Sj36gLBw=; b=XYkAVRtWvR4GsDNDWu7yG2X1Yuqet+QJDQhx9eNSYh3qT2b9Bn+cpQOFuRT9MsabDE AxyaSLJcxOvwZHeX6cefiiFvbrtTVU8SgeVTqpDXjRxg8GeZ/gUOIvxcAR8hv6ag0PMb uxk9eD+mJe5gsLbm25QIz21UVtrt4m8r7m1vFnIqcZD9/UchZyzTjYLm4og/9PmEIetp 8e0PCHuJuMY6OFWY1aiMnSVMhiPAmpnjdfzCAjONj3Pb+BU2IE4GN70U+bDmNf/Iretv 3RMqsgoxuQ3GaD1XvNqow+943SeMxKo+wYedntx/anK0Gj3OzLTzZAboMKO3ZH0uD6iq SY5w== 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=4fhTbaOO6gPm4S2ZPJraDoPnA8P8mXKsES2Sj36gLBw=; b=FRddALdpdo2RAxeACCaHdBGURUxKIvcm9z5TMK6pGJRdBHS6Flsw3di6oMuwyvtEDa I3naWG0YiE6HvmyC6prGOiQ5ft/5eSoWP/mlCpk3Qq+bwInoDnaVIkzuu6vBXrRYTgPs qihhcZxy50X0G+1sJH/XJ42CMtYqWTiIsGwxR/rHfGbcqryIVD+og07fEOjXMMMsEjJn KAy+EldWRMyY0diZBZHjaXEh5gsP4Q2BlxBOolICSWXPzQ6pxAqepna376tbytn7ITyg 0A4n0NCJWpEHzBtBz70OPu/PrOZFP8RSCihEwt1dCNM1gPnhpbSzhc0r1XaQkUS+x0Z0 vO9w== X-Gm-Message-State: AG10YOT16ttzKiR9xMeEQe99jaj4iyU6kg93+NbHe77qbm2mkJpCSjHn7W7YdBGc8s4LZQ== X-Received: by 10.129.117.85 with SMTP id q82mr14430744ywc.267.1454947449636; Mon, 08 Feb 2016 08:04:09 -0800 (PST) Original-Received: from Hermes.local (56.sub-70-214-64.myvzw.com. [70.214.64.56]) by smtp.gmail.com with ESMTPSA id z129sm21283399ywb.26.2016.02.08.08.04.07 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 08 Feb 2016 08:04:08 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Hermes.local (Postfix, from userid 501) id F3BD54DDD3F1; Mon, 8 Feb 2016 11:04:08 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Mon, 08 Feb 2016 09:06:49 -0500") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Stefan Monnier , 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:4002:c05::231 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:199524 Archived-At: >>>>> Stefan Monnier writes: > - We need to update/replace/rewrite our C-level regexp matching code. > - Most likely, along the way we may be able to add > "compiled-regexp" objects. Currently the regexp-compilation is done > transparently, with a cache to avoid obvious performance issues; > this works well in most cases, but offering access to compiled-regexps > could open up a few more options. > - I'd love it if the new code could provide something like > `make-regexp-case-insensitive'; either applied to the string-regexp or > to the compiled-regexp, or maybe as an option to `regexp-compile'. Agreed on all points. Perhaps we could abuse text properties for this, by allowing regexps that can be enriched with properties like :case-insensitive t. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2