[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regex edit mode
From: |
Marcin Borkowski |
Subject: |
Re: regex edit mode |
Date: |
Tue, 30 Sep 2014 21:10:08 +0200 |
On 2014-09-30, at 18:55, Sam Halliday wrote:
> Hi all,
>
> It is sometimes confusing, when writing a regex in elisp, to remember all the
> escaping rules that are in play.
>
> Does anybody on this list know of a minor mode that would allow the user to
> edit regexes so that escaping is not necessary, but for the escaping to occur
> "under the hood".
>
> Imagine being able to place the point over a string containing a regex (which
> is using escapes) and then call an interactive function which makes the
> escape characters go away and if special characters are entered, the escapes
> are added automagically. When exiting the minor mode, the raw string with
> escapes would appear again.
Not exactly what you have in mind, but do you know M-x re-builder?
> Sam
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University