From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: modern regexes in emacs Date: Sun, 17 Feb 2019 15:47:24 -0500 Message-ID: References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> <87po0qs6re.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="203787"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 21:47:40 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 1gvTLf-000qtj-Bj for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2019 21:47:39 +0100 Original-Received: from localhost ([127.0.0.1]:46414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTLe-0005hH-Cb for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2019 15:47:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTLY-0005h0-7S for emacs-devel@gnu.org; Sun, 17 Feb 2019 15:47:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvTLX-00007a-If for emacs-devel@gnu.org; Sun, 17 Feb 2019 15:47:32 -0500 Original-Received: from [195.159.176.226] (port=53416 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvTLX-00007A-BJ for emacs-devel@gnu.org; Sun, 17 Feb 2019 15:47:31 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gvTLV-000qit-73 for emacs-devel@gnu.org; Sun, 17 Feb 2019 21:47:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:J8Vz8IW3toHt4t+mdgslVvps+as= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:233435 Archived-At: > 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. Other than isearch, most other commands should (ideally) read their regexps interactively with `read-regexp`, so it should be easy for a third party package to advise `read-regexp` so it accepts the PCRE syntax (or the RX syntax, ...) and then converts it to Emacs's own syntax. Shouldn't break any package at all. Stefan