diff options
| author | Stefan Monnier | 2023-09-15 14:44:59 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-09-15 14:53:24 -0400 |
| commit | e7e925f062f8d50375daa40ad7981c6d44cd7f05 (patch) | |
| tree | 8be3c2e7de3a432c72dc55ab89c24b3e23f2ab4e /java | |
| parent | 9610aaeb9e5f3d572616f0742fca2f5e5abc141d (diff) | |
| download | emacs-e7e925f062f8d50375daa40ad7981c6d44cd7f05.tar.gz emacs-e7e925f062f8d50375daa40ad7981c6d44cd7f05.zip | |
(mutually_exclusive_p): Fix the regression from commit 6fad73d7cc53
Commit 6fad73d7cc53 throws away some useful optimization because
it misfired in some cases (as seen in bug#657260). Here we try to
recover those useful optimizations with a slightly more careful
algorithm.
* src/regex-emacs.c (mutually_exclusive_aux): Rename from
`mutually_exclusive_p`. Add two new args. Improve the
case where we need to recurse.
(mutually_exclusive_p): New function defined on top of it.
* test/src/regex-emacs-tests.el (regexp-tests-backtrack-optimization):
Re-enable the test.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions