Skip to content
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

anzu-query-replace-regexp: Match data clobbered by buffer modification hooks #89

Open
baohaojun opened this issue Aug 29, 2017 · 0 comments
Labels
need repro we can't reproduce this

Comments

@baohaojun
Copy link

When I run that command, there is often that “Match data clobbered by buffer modification hooks” error.

Running with

(let ((inhibit-modification-hooks t)) (call-interactively #'anzu-query-replace-regexp))

seems to be a workaround.

Detailed backtrace:

Debugger entered--Lisp error: (error "Match data clobbered by buffer modification hooks")
  replace-match("githash_subject_map" nil nil)
  replace-match-maybe-edit("githash_subject_map" nil nil t (791 807 #<buffer is-patch-reverted>) nil)
  perform-replace("subject_hash_map" "githash_subject_map" t t nil nil nil 1 2325)
  apply(perform-replace ("subject_hash_map" "githash_subject_map" t t nil nil nil 1 2325))
  anzu--query-replace-common(t :prefix-arg 1)
  anzu-query-replace-regexp(1)
  funcall-interactively(anzu-query-replace-regexp 1)
  call-interactively(anzu-query-replace-regexp nil nil)
  command-execute(anzu-query-replace-regexp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need repro we can't reproduce this
Development

No branches or pull requests

2 participants