When auto-revert-mode is enabled, or the buffer is reverted, everything that changed gets added to aggressive-indent--changed-list, which means that they will all get reindented when the next command is executed.
This is particularly an issue when using version control and switching branches. large swatches of buffer are reindented all the time, really polluting the diffs.
I was able to solve this by clearing aggressive-indent--changed-list in after-revert-hook, but I am not sure if that is the best solution.
When
auto-revert-mode
is enabled, or the buffer is reverted, everything that changed gets added toaggressive-indent--changed-list
, which means that they will all get reindented when the next command is executed.This is particularly an issue when using version control and switching branches. large swatches of buffer are reindented all the time, really polluting the diffs.
I was able to solve this by clearing
aggressive-indent--changed-list
inafter-revert-hook
, but I am not sure if that is the best solution.