From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: rx.el sexp regexp syntax Date: Thu, 31 May 2018 18:02:03 +0100 Message-ID: <87po1bep2s.fsf@tcd.ie> References: <87h8mw3yoc.fsf@gmail.com> <20180525155126.GA4096@ACM> <87lgc7hebk.fsf@gmail.com> <87r2lzd375.fsf@ericabrahamsen.net> <8736ybpwhh.fsf@gmail.com> <87y3g1a9kv.fsf@gmail.com> <877enjby8h.fsf@gmail.com> <87lgbzvlx9.fsf@gmail.com> <87wovjepp6.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527786011 31148 195.159.176.226 (31 May 2018 17:00:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 17:00:11 +0000 (UTC) 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 Thu May 31 19:00:07 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 1fOQvn-00080r-H6 for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 19:00:07 +0200 Original-Received: from localhost ([::1]:45231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOQxu-0000s7-El for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 13:02:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOQxn-0000rm-VL for emacs-devel@gnu.org; Thu, 31 May 2018 13:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOQxk-0007hv-0F for emacs-devel@gnu.org; Thu, 31 May 2018 13:02:12 -0400 Original-Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:40684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOQxj-0007hN-QH for emacs-devel@gnu.org; Thu, 31 May 2018 13:02:07 -0400 Original-Received: by mail-wm0-x236.google.com with SMTP id x2-v6so47760835wmh.5 for ; Thu, 31 May 2018 10:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=6XlGFquigNW7kjzgQt6ZoK9HqKafKKIqJyFByBHL+7w=; b=ut/7L/MLYz5x6RzsPZjga9bwU5tXMVuWlVGw0KTBIUBxUknwY8bu5+LgItl4RMzDpJ DitcdF0GGbHDiX1Kh7uU9uf6P0sRVCB1Hke2OLCPEwZm90mt5W7a8O173Z1FSQfsfYsx EgaVZHBHTcfIZEzudlB1IgOV+PYnDIvy0xvg31YS3cGcNrX+JefEiIe4YQ9A5GW3naIv NSuqlxlOQDB2nDfYH79VOK4maDOvJzvtH+t27bNNiMlk5WKw48nnRTkkXhe/qRF2nBNh Y1rNPX+RPOtyFqXdF857X9f6vtwGXIOyzS419CiCssr6WSuZ9tnXoY8WJKyJluCIUmIl MBSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6XlGFquigNW7kjzgQt6ZoK9HqKafKKIqJyFByBHL+7w=; b=CKNqtY/I3MHM6Yzn50MQ4zZFz2C9neD3H+LsYJbdkuj0tI3PdreLyCcY33nCWh26ns Sehl9pibHL5uKlF5HmIr+fIK1ilqna6oo71zJlEWULgN2n7G5yzXYZcJ79hmjqbZpXmI Nsh+/9lMf0r5d8N+/IrO7NRmvfo4Puns6Swn5IWl0/oeXl54C2mfl3KLgzah1ERgJ+Ij wJemAd9Qfj6do/Y/H65GMNJW45cibEZQU2TX/j2BqZo1NO8laYAZlcemuqEkp+7SUrdm +1qarzkWCnwC5xD44gftH5ktPMjQs9uhkkV3KGsiPegxK1MixUlBbsq9qf5kp2WynMmq d3og== X-Gm-Message-State: APt69E0a7WpuW61h08eTMqNwhnylwm4EaxaRIkU31OzciO3P00VHM/Av fyfneTwh2N/7KpxPVpVM5GaUNp4ibt4= X-Google-Smtp-Source: ADUXVKIh1EmGWfpeKxvy4RMjWZ0aYA77sCPw3PrO7fEwGe02jS/ojgajlfAX9FFTDtuMBB+5DkC20Q== X-Received: by 2002:a1c:30ce:: with SMTP id w197-v6mr442326wmw.22.1527786126003; Thu, 31 May 2018 10:02:06 -0700 (PDT) Original-Received: from localhost ([178.62.40.52]) by smtp.gmail.com with ESMTPSA id d3-v6sm17804239wri.24.2018.05.31.10.02.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 10:02:05 -0700 (PDT) In-Reply-To: <87wovjepp6.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 31 May 2018 17:48:37 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 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:225864 Archived-At: "Basil L. Contovounesios" writes: > Robert Pluim writes: > >> Jo=C3=A3o T=C3=A1vora writes: >> >>> Drew Adams writes: >>> >>>> Given such functions, I might use RX and the show-me-the-regexp >>>> function to create a regexp string, which I'd leave in the code, >>>> and I might use the show-me-the-RX function when I need to change >>>> such a string (or think about it). >>> >>> +1, FWIW. But are there such functions? >> >> rx->regexp obviously exists, but I=CA=BCm not aware of the reverse. > > At first glance, lex-parse-re from lex.el seems to fill the role, though ^^^^^^ I meant lex-parse-re.el, which is part of the lex package on ELPA. --=20 Basil