From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: xr Date: Fri, 1 Feb 2019 10:25:12 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186501"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 01 16:26:20 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 1gpahr-000mHK-4u for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2019 16:26:15 +0100 Original-Received: from localhost ([127.0.0.1]:56643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpahq-0002s6-6E for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2019 10:26:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpagw-0002qa-I2 for emacs-devel@gnu.org; Fri, 01 Feb 2019 10:25:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpagu-0000id-Ee for emacs-devel@gnu.org; Fri, 01 Feb 2019 10:25:18 -0500 Original-Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:45950) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpagu-0000h0-2h for emacs-devel@gnu.org; Fri, 01 Feb 2019 10:25:16 -0500 Original-Received: by mail-qt1-x834.google.com with SMTP id e5so7825605qtr.12 for ; Fri, 01 Feb 2019 07:25:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=EQrCHXimsOA4itFWYu150/TZ9AsfdJi3W4eLOFB1Jdk=; b=JU9az3Pvlwv/UtWMr4BcHLRW0BTslHt9TJBoUW593n4njryKB65qG10ElNbOPF/v50 97ymGtZj7xP2l2xFectScGR1xiYdYYe37ZhHcTwaydOK+tTHbSrM59GCKgVHzKbVZ9r/ 3hTBJ+M2hTXWMtVsgtXl/HJ/6JvJRD7OUPmXetS2yqGcTUNMEMKU4X2MmW2pCviII/lz zvp0LgUOocso3Q84gResEogegMApd3E3aI+gwI3Af+Y0H6GVE9cpTwPxg6CR4obzGpa6 qfhObSVregDYhTDCLnpXZD8bX/CdRJejjk+ba7U39Fs9h0XVPX6iw6CRFSLGsSPg5DKF SWaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EQrCHXimsOA4itFWYu150/TZ9AsfdJi3W4eLOFB1Jdk=; b=XEQKYmIH51npM0BMC+xklUsMozsWBaIBmJ5Bc6nSL+yMRN/m4Vavys1fhLZO9+zXtp Jf93YBCtnpBs2JNUGXL3oU0zNOvJWPXWu+dLBZmIj9DIYjDy1j+nlbP2UYpoghIZH6g6 pi5+IF1rFgs5LIaJcnPEjx9Fnor3mXOaDdv+Dth5Qi4Gy6Al19DCcSWKAPHkjg9HkQ65 wZP9GYjoZCmsymwIn65Gd7GkDhQ0kjbNf40gkgymrhPqNVF+70Oo6md/N67NkZ4bGM06 uxlF7EMAoa9O/KOqJLfiyjAyYj15NyA/2n9EeXLi2UZzucG8t/ZlmUCUR7hLC2BDatCU W2GQ== X-Gm-Message-State: AJcUukeWSGGBl6DX244nNFxswSvlJY4UNvBoVM3HYUFtnoikH8zUY5SM 7NNsGc5xBnapXX2Wctw6HhOZ0RS7 X-Google-Smtp-Source: ALg8bN7xJn4V46UO8zAaPNsD6h0qUG4jVQX5I0pzPUJwWdPVJTQFuNlRknW7Vb413l6a9+0SAjNdcQ== X-Received: by 2002:a0c:f50c:: with SMTP id j12mr36477251qvm.149.1549034713778; Fri, 01 Feb 2019 07:25:13 -0800 (PST) Original-Received: from [128.30.9.26] (30-9-26.wireless.csail.mit.edu. [128.30.9.26]) by smtp.googlemail.com with ESMTPSA id r47sm7038153qtc.77.2019.02.01.07.25.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 07:25:13 -0800 (PST) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::834 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:232886 Archived-At: On 01/02/2019 09.09, Mattias Engdegård wrote: > This is a proposal to add xr to ELPA. > > The xr package is the inverse of rx: it transforms an Emacs regexp string into rx form. Its purpose is to assist in migration to rx-style regexps, something I think a lot more people should do, and help understanding difficult regexps. > > It is written to take all features and oddities in the Emacs regexp notation into account. This includes undocumented parts, since such regexps are found in actual code. > > The package consists of a single file, right now at https://github.com/mattiase/xr . It is something I have had lying around for some time and found constantly useful, and have now had the opportunity to give some polish. Looks great. Here's a feature request: can you combine this with a font-lock rule to display existing regexps in rx syntax? Something like prettify-symbols-mode, but for regular expressions. Clément.