]> git.eshelyaron.com Git - emacs.git/commit
regex.c (mutually_exclusive_p): Fix initial value of `loop_beg`
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Sep 2023 15:43:51 +0000 (11:43 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Sep 2023 15:43:51 +0000 (11:43 -0400)
commite88be844bf774b336ab67995e435416328b53776
treed937036da59671bcde1c1bff176c31605db47b74
parent215bfb24dd0de9ba2c82aea330cbb27985ad6eae
regex.c (mutually_exclusive_p): Fix initial value of `loop_beg`

* src/regex-emacs.c (mutually_exclusive_p): Don't pretend that pattern
position 0 has been checked already.

* test/src/regex-emacs-tests.el (regexp-tests-backtrack-optimization):
Add a corresponding regression test plus some other related tests
I had around.
src/regex-emacs.c
test/src/regex-emacs-tests.el