GNU bug report logs -
#31953
feature request - `highlight-rx` interactively
Previous Next
Full log
View this message in rfc822 format
Phil Sainty <psainty <at> orcon.net.nz> writes:
> On 2019-10-15 13:35, Lars Ingebrigtsen wrote:
>>> I was wanting to migrate from regexp to rx syntax for highlighting.
>>
>> `rx' returns a normal regexp, so you can use whatever you want, can't
>> you?
>
> I think the idea is to be able to *interactively* enter rx syntax
> and have it highlighted (as opposed to `highlight-regexp' which will
> obviously treat what you enter interactively as an actual regexp,
> rather than something to be transformed into one).
>
> i.e. These would be equivalent:
>
> M-x highlight-rx RET (or "foo" "bar") RET
> M-x highlight-regexp RET \(foo\|bar\) RET
What I can tell from the emacs-devel list and the git log is the rx
feature is being worked on. I'd like to use rx everywhere regexp occurs
and highlight-rx would be the first easy use case. At the limit there
are things expressible in regexp that rx won't be able to. And, in that
case, I'd like to see in the rx documentation a sign post to regexp at
depth for that. And, if there are patterns rx and/or regexp are unable
to express then providing a see also for those would be a help.
This bug report was last modified 5 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.