Backreferences in search fail to work with vim-style-regexp
totallyuniquelily opened this issue · comments
Issue type
- Bug report
Environment
Emacs version: GNU Emacs 29.3 (build 2, x86_64-unknown-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-03-25
Operating System: Void Linux
Evil version: Evil version 1.15.0 (reproduced with github master as well)
Evil installation type: Doom (which I think uses ELPA)
Graphical/Terminal: Graphical
Tested in a make emacs
session (see CONTRIBUTING.md): Yes
Reproduction steps
- Start Emacs (with
make emacs
) - open a scratch buffer and insert text with repeating letters (e.g. "green wood")
- enable evil-search search module (M-:
(evil-select-search-module 'evil-search-module 'evil-search)
) - enable vim-style regexp (M-:
(setq evil-ex-search-vim-style-regexp t)
) - type
/\(.\)\1
(or/\v(.)\1
)
Expected behavior
search would find "ee" and "oo"
Actual behavior
search fails
Further notes
\(.\)\1
works the same in (neo)vim and isearch. just not in evil-search with evil-ex-search-vim-style-regexp
enabled. (and works if that variable is set to nil)
Thanks @totallyuniquelily I can reproduce this. Will take a look when I get some time.
@totallyuniquelily this should now be fixed in master. Let me know if you observe otherwise.