[Top][All Lists]

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

Re: Improve `replace-regexp-in-string' ergonomics?

From: Lars Ingebrigtsen
Subject: Re: Improve `replace-regexp-in-string' ergonomics?
Date: Tue, 12 Oct 2021 14:10:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> Such simultaneous replacement could be implemented the same way as
> in mm-uu-configure that creates a composite regexp from all regexps:

Yup.  Or as Stefan M said, `syntax-propertize-rules' which does the
same, but tries to keep track of subregexp stuff, which the mm function
doesn't do at all (and we want to be able to work on subregexps).

But the reason I haven't started working on this yet is that I don't see
a way past the limit we have on nine back references, and it wouldn't be
cool to have such an arbitrary limit here.

Using one mega-regexp and then re-applying a smaller regexp to get at
the back references doesn't sound very appealing, either.  :-/

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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