emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] A program to overlay Elisp regular expressions in rx form


From: Clément Pit-Claudel
Subject: Re: [PATCH] A program to overlay Elisp regular expressions in rx form
Date: Sun, 15 Nov 2020 09:03:51 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 11/15/20 6:16 AM, Daniel Martín wrote:
> Is there general interest in this kind of functionality as a free
> program?  I don't know if this could be a new feature of the xr package
> (most probably), or if it could be its own separate package.
This is very nice.  I have a version of this in my local Emacs config, but it's 
on by default and it doesn't put the buffer in read-only more: it uses an 
overlay to display the rx regexp instead of the string-based one instead.  I've 
attached the code if you want to have a look; what's missing is logic to 
automatically "unprettify" the regexp when the point is in it, to make edits 
easy.

I was originally planning to include this in the easy-escape package, but I 
haven't found the time to do it, so feel free to go ahead :)

Clément.

Attachment: xr-prettify.el
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]