]> git.eshelyaron.com Git - emacs.git/commit
Speed up match-substitute-replacement
authorMattias Engdegård <mattiase@acm.org>
Fri, 4 Dec 2020 17:37:21 +0000 (18:37 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 4 Dec 2020 17:39:13 +0000 (18:39 +0100)
commit7bdc40e8d10488745355376981793a4d1e823f19
tree315d6ea4a1f76dcbff4fc8ab4dae21d44719f458
parenta5fa79d50e6e6182fef0a6dc526ac272e87e2c02
Speed up match-substitute-replacement

* lisp/subr.el (match-substitute-replacement): Use match-data--translate.
* src/search.c (Fmatch_data__translate): Remove string restriction.
* test/lisp/subr-tests.el (subr-match-substitute-replacement): New test.
lisp/subr.el
src/search.c
test/lisp/subr-tests.el