Malabarba / aggressive-indent-mode

Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.
850 stars 36 forks source link

Revert "Make the idle timer not be buffer local" #121

Closed joaotavora closed 5 years ago

joaotavora commented 5 years ago

This reverts commit cc8da01e32684e1b75d2901400e6723b2c2d42f8.

Since this commit, interaction with flymake-mode in .el buffers (and probably some other modes) is broken.

To reproduce:

emacs -Q -l aggressive-indent.el -f global-aggressive-indent-mode aggressive-indent.el -f flymake.mode ;; use the aggressive-indent.el file itself as a test fixture
C-s s t r i n g p ;; search forward to an appropriate sexp (should land you around line 176)
C-M-u ;; to go to the beginning of this sexp
C-M ;; newline

The form is not indented as desired.

If I revert the commit, everything is OK.

joaotavora commented 5 years ago

By the way, this has no relation to #119, it happens with and without that change.