From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: rx.el sexp regexp syntax Date: Mon, 28 May 2018 13:15:45 -0400 Message-ID: References: <87h8mw3yoc.fsf@gmail.com> <20180525155126.GA4096@ACM> <87lgc7hebk.fsf@gmail.com> <87r2lzd375.fsf@ericabrahamsen.net> <8736ybpwhh.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527527668 23878 195.159.176.226 (28 May 2018 17:14:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 17:14:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Pierre Neidhardt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 28 19:14:24 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNLix-00066R-HG for ged-emacs-devel@m.gmane.org; Mon, 28 May 2018 19:14:23 +0200 Original-Received: from localhost ([::1]:57228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNLl4-0006Dh-GN for ged-emacs-devel@m.gmane.org; Mon, 28 May 2018 13:16:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNLkO-0006Dc-RW for emacs-devel@gnu.org; Mon, 28 May 2018 13:15:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNLkJ-000586-A4 for emacs-devel@gnu.org; Mon, 28 May 2018 13:15:52 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNLkJ-00057j-4K for emacs-devel@gnu.org; Mon, 28 May 2018 13:15:47 -0400 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w4SHFjuE030768; Mon, 28 May 2018 13:15:45 -0400 Original-Received: by lechazo.home (Postfix, from userid 20848) id 9D927602A1; Mon, 28 May 2018 13:15:45 -0400 (EDT) In-Reply-To: <8736ybpwhh.fsf@gmail.com> (Pierre Neidhardt's message of "Mon, 28 May 2018 18:37:30 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6295=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6295> : inlines <6663> : streams <1788062> : uri <2648720> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:225779 Archived-At: >>> brutal regexp, but what I *would* use all day long would be a macro that >>> un-escaped backslashes for me. Ideally: >> That'd be a good first step. >> A second important step would be to easily embed comments and Elisp code >> (mostly references to other Elisp variables). > rx.el can do all that (with "eval") if I'm not mistaken. The main problem of RX is not lack of features, but verbosity which for me makes it disappointingly difficult to read (not always worse than string regexps, admittedly, but still). Stefan