From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: modern regexes in emacs Date: Fri, 15 Feb 2019 16:18:12 +0200 Message-ID: <83r2c9m8yj.fsf@gnu.org> References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> <87po0qs6re.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="191565"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mattiase@acm.org, perry@piermont.com, jaygkamat@gmail.com, lokedhs@gmail.com, emacs-devel@gnu.org To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 15:19:31 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 1gueKw-000ngj-S2 for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 15:19:30 +0100 Original-Received: from localhost ([127.0.0.1]:40641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gueKv-00053t-SP for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 09:19:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gueKB-00053d-Fz for emacs-devel@gnu.org; Fri, 15 Feb 2019 09:18:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gueJy-0002N1-OZ; Fri, 15 Feb 2019 09:18:33 -0500 Original-Received: from [176.228.60.248] (port=1137 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gueJv-0000wt-Qx; Fri, 15 Feb 2019 09:18:30 -0500 In-reply-to: (message from Philippe Vaucher on Fri, 15 Feb 2019 14:42:43 +0100) 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.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:233373 Archived-At: > From: Philippe Vaucher > Date: Fri, 15 Feb 2019 14:42:43 +0100 > Cc: emacs-devel , Jay Kamat , > Elias MÃ¥rtenson , > "Perry E. Metzger" > > I think the purpose of this thread is to ask for emacs to support PCRE regexpes in commands like > `query-replace-regexp`. > > Would this even be possible? I can imagine a whole lot of packages breaking if the regexp syntax changed, > and changing it just for the user input in interactive functions looks a bit sketchy. It should be possible if we introduce new functions for PCRE, or if we mark PCRE regexps in some special way, like put a special text property on the string.