emacs-devel
[Top][All Lists]
Advanced

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

Re: modern regexes in emacs


From: Stefan Monnier
Subject: Re: modern regexes in emacs
Date: Sun, 17 Feb 2019 15:47:24 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Would this even be possible? I can imagine a whole lot of packages breaking
> if the regexp syntax changed, and changing it just for the user input in
> interactive functions looks a bit sketchy.

Other than isearch, most other commands should (ideally) read their
regexps interactively with `read-regexp`, so it should be easy for
a third party package to advise `read-regexp` so it accepts the PCRE
syntax (or the RX syntax, ...) and then converts it to Emacs's
own syntax.  Shouldn't break any package at all.


        Stefan




reply via email to

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