emacs-devel
[Top][All Lists]
Advanced

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

RE: Sending multiple patches


From: Herring, Davis
Subject: RE: Sending multiple patches
Date: Sat, 7 Jun 2014 15:05:59 +0000

>     ("<! *\\(--\\|==\\)" . (1 " *>"))
> 
> If the code was changed so that the whole end-pattern is regexp-quote'd,
> the asterisk would get escaped.

(What we really want here is a "backreference to another match".)  If 
`store-match-data' is sufficiently tolerant of the deception, there is the 
possibility of a fairly complicated dance of `match-data', `replace-match', 
`regexp-quote', and `store-match-data' to quote exactly the submatches in the 
replacement.  (Is there a function to compute, rather than apply, a 
replacement?  That would cut down on the circuitousness...)

Davis


reply via email to

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