gregsexton / origami.el

A folding minor mode for Emacs
516 stars 41 forks source link

tags-query-replace fails with "Match data clobbered by buffer modification hooks" #76

Open coreyoconnor opened 6 years ago

coreyoconnor commented 6 years ago

When using origami.el for folding and tags-query-replace, the replace operation will fail on a file with folds with "Match data clobbered by buffer modification hooks"

In my case this is invoked using projectile's global search/replace feature. Which internally uses tags-query-replace and I'm able to induce the failure directly using tags-query-replace. The search/replace fails as soon as a fold needs to be entered.

I don't know if this applies to other folding libraries.

As I understand the error message it's related to one of the hooks added:

That's all I know about this error. Not even sure it's specific to origami!