]> git.eshelyaron.com Git - emacs.git/commit
Restrict replace-*-in-region to the bounds defined by caller
authorKévin Le Gouguec <kevin.legouguec@gmail.com>
Sun, 11 Sep 2022 17:55:01 +0000 (19:55 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 11 Sep 2022 17:55:36 +0000 (19:55 +0200)
commitd8f392bccd46cdb238ec96964f220ffb9d81cc44
treee848ea4af2352a30411d4fe5ef1797fc87e87441
parentcba83d989359d667e52dad4e0e9eadf6f77cc38f
Restrict replace-*-in-region to the bounds defined by caller

* lisp/subr.el (replace-string-in-region, replace-regexp-in-region):
Narrow to region before iterating over matches, instead of giving a
bound to the search functions.
* test/lisp/subr-tests.el (test-replace-string-in-region): Add
regression tests (bug#57733).
lisp/subr.el
test/lisp/subr-tests.el