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 17:48:37 +0100 Message-ID: <87wovjepp6.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> 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 1527785205 5689 195.159.176.226 (31 May 2018 16:46:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 16:46:45 +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 18:46:40 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 1fOQim-0001NH-GB for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 18:46:40 +0200 Original-Received: from localhost ([::1]:45202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOQkt-0007An-At for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 12:48:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOQkn-0007Aa-P3 for emacs-devel@gnu.org; Thu, 31 May 2018 12:48:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOQkk-0004vM-NV for emacs-devel@gnu.org; Thu, 31 May 2018 12:48:45 -0400 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:36195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOQkk-0004uD-E6 for emacs-devel@gnu.org; Thu, 31 May 2018 12:48:42 -0400 Original-Received: by mail-wm0-x22f.google.com with SMTP id v131-v6so35889300wma.1 for ; Thu, 31 May 2018 09:48:41 -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=dDcAMCfxMKJqz7vE66lUaG6TBqxYf2zh6kh3G1IwRzI=; b=1sMgWhZidKD0g1kXJowTn8JHKQEKM9XX7wp25p5l2bsRv6o8Y7WYp7tbJwj6rHLmoa dbN4kR6h0pjAhCaek+/8hBvx23R0Ytr+ACG14PNDHedMtkwTlej6WP6ZmwKTbxspIB2g N2mTGmFdZ12+ooMez1vvNLb/R7Gnz0CHpuo7CnhB1fzKjGHmbVKwOBGU1TKT0YAS4wiP qzFd4EOjSXGsLlzpxEfKkAGOL3XmK8n4uzSZc1uoBz+1QjyitvCoAK+ygHVWpiyvtjQf UicXE2kIw3rZP8PgIeuk6GSzSbLkBU391BbDsMXjVnvkjXCvCUN40b1DTLzeGQY+2RkW bikQ== 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=dDcAMCfxMKJqz7vE66lUaG6TBqxYf2zh6kh3G1IwRzI=; b=GB9lVgmGWOYTWEpnKrjqWJknYVxvLhP2D2fNjXhJRMN3opC8J3sK9lxRRpZLIYTHuV 7lTLwBulI3P1/z19Ods+PxOGopLkE9MGqHO8kvgc73uJRGH41xyZgDaKCBiyRGGSJDa2 ix11YmExH4JSTrPSvdrSFTQRw8Gsg3XV2/68bwOaKbHrvowZhQXnGeB/xIsB3Xco6XMk dBiRNzYCEBra9fcyvoVialGV+MTFt1DfISEmaB3TZ3Y/vsxmudMqGjwi+Y7rwh1bQkns Df3u9rGRxDfiw6nnppawHk8zIkGq+xUdQAqxg5YyN+x1W6TT7mulbwXoWZudLMJ/xUj5 lrjg== X-Gm-Message-State: ALKqPwdiPumwPk7K8emWvpp988Lej/inZX/vdGGxxQEd8GVvnaRhUC4C 6xQN6a5Zv1gq2on8YIG1zxn8vQ6XfRE= X-Google-Smtp-Source: ADUXVKJuRDD8/tOnxUmhER8EcxIi+iqwKC5zKcYeMnjz3mFJHSfitRmRwTb66WbaByw7AcCPHFmFEg== X-Received: by 2002:a1c:e619:: with SMTP id d25-v6mr396060wmh.23.1527785320115; Thu, 31 May 2018 09:48:40 -0700 (PDT) Original-Received: from localhost ([178.62.40.52]) by smtp.gmail.com with ESMTPSA id o13-v6sm1189735wmc.8.2018.05.31.09.48.38 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 09:48:39 -0700 (PDT) In-Reply-To: <87lgbzvlx9.fsf@gmail.com> (Robert Pluim's message of "Thu, 31 May 2018 18:18:10 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22f 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:225863 Archived-At: 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 its output might need a little tweaking to be completely rx-compatible. --=20 Basil