Hmm... The code that runs those hooks is really littered at odd places, with no good/standard way to control when to run it and when not. I suggest the patch below (which includes a corresponding test). Any objection? Stefan