-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query-replace fails with origami #56
Comments
This issue also happens to me using Emacs 24.5.1 and Origami 20170129.805 for single brackets |
Happens to me too using Emacs 26.1 (build 1, x86_64-w64-mingw32). Interesting, when changing text throughout the buffer, text BEFORE the fold marker "{{{" is changed, but not after; so, with 10 occurrences of 'TEXTA' total and 2 before "{{{", the first two are changed and then the match is clobbered. I note that if I narrow the buffer to text between the fold markers, there is no error, but as long as the "{{{" exists in the buffer to be parsed, the error occurs. Hopefully the debugger text will assist. Debugger entered--Lisp error: (error "Match data clobbered by buffer modification hooks") [EDIT] |
I found a reliable reproduction scenario, and a fix that works for me. Reproduction scenario:
The fix that works for me is to edit function
I've created pull request #93 for this. |
when using query-replace in a buffer that's partially folded with origami.el, I get the following error after the first successful replace:
replace-match-maybe-edit: Match data clobbered by buffer modification hooks
I'm using Emacs 25.1 and Origami 20170129.805 from elpa.
The problem happened using (origami-markers-parser "{{{" "}}}") as my parser.
Thanks for your help.
The text was updated successfully, but these errors were encountered: