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: Fri, 15 Feb 2019 14:37:18 -0500 Message-ID: References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> <87po0qs6re.fsf@gmail.com> <83r2c9m8yj.fsf@gnu.org> <17581DA9-7DCA-432E-A2E8-E5184DFA8B4B@acm.org> <20190215114728.0785e891@jabberwock.cb.piermont.com> <20190215175405.GA5438@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17110"; 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 Fri Feb 15 20:37:48 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 1gujIw-0004Ia-Jw for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 20:37:46 +0100 Original-Received: from localhost ([127.0.0.1]:45233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gujIv-0003u3-KU for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 14:37:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gujIl-0003tH-GZ for emacs-devel@gnu.org; Fri, 15 Feb 2019 14:37:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gujIj-0001x0-GK for emacs-devel@gnu.org; Fri, 15 Feb 2019 14:37:35 -0500 Original-Received: from [195.159.176.226] (port=44262 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gujIh-0001rx-FX for emacs-devel@gnu.org; Fri, 15 Feb 2019 14:37:32 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gujIe-0003vB-BJ for emacs-devel@gnu.org; Fri, 15 Feb 2019 20:37:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:b2pPK5Sq3Q8WSDDgGRT98RxjZG4= 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:233394 Archived-At: >> > (1) The syntax of PCRE -- | () {} instead of \| \(\) \{\} etc -- >> > but restricted to the set of features of the Emacs regexp engine. >> Modern syntax is the main one. > Such use of "modern" always gets on my nerves. "Modern" is not the same > as "good", and likely has a very weak correlation with it. Why aren't we > all using "modern" editors, for example? I much prefer the |(){} syntax over the current \|\(\)\{\}. This said, such a switch would probably be rather painful. It probably make sense to do it at the same time we switch to Scheme/CommonLisp/Agda. Stefan