Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Really protect against unwanted indentation after undo
When I am undoing changes to a region I really want the changes to be undone verbatim. This is probably the rationale for have undo-in-progress in aggressive-indent--internal-dont-indent-if in the first place. But it doesn't fix the whole problem, because changes performed by undo are still recorded into aggressive-indent--changed-list and the very next command will indent those regions. This means it's impossible in practice to use `undo' to undo an aggressive indent of a region. The fix proposed here checks undo-in-progress before registering a change. It's possible that other elements (but maybe not all) in aggressive-indent--internal-dont-indent-if merit this treatment, too. * aggressive-indent.el (aggressive-indent--keep-track-of-changes): Check undo-in-progress.
- Loading branch information