When running bibtex-reformat
I get Match data clobbered by buffer modification hooks
. I know according to the post here that one of my change hooks is clobbering the match data. In fact, when I set inhibit-modification-hooks
to t
, I don't get the error anymore.
I am trying to figure out the culprit for this error. I tried removing all the hooks from after-change-functions
, before-change-functions
and first-change-hook
and set back inhibit-modification-hooks
to nil
, but then the error comes back. Evidently, there's a change hook that is running which I don't know.
Is there another way of hunting down the culprit? Or somewhere else I should be looking?
debug-on-error
tot
and checking the backtrace to see what caused the problem?bibtex-reformat
not where the match data was clobbered.*.el
, not*.elc
) that definesbibtex-reformat
. Then useM-x debug-on-entry bibtex-reformat
and step through the debugger. That can help, if you pay attention and test thematch-data
from time to time usinge
. Also, be sure to start Emacs withemacs -Q
, to remove any of your init file from the search for the problem.