bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` intera


From: Phil Sainty
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Date: Tue, 15 Oct 2019 15:39:43 +1300
User-agent: Orcon Webmail

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







reply via email to

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