• João Távora's avatar
    Correctly reindent previous line in electric-indent-mode · 5e88b50d
    João Távora authored
    Fixes: bug#35254
    Do this even when electric-indent-inhibit is t, except when the
    newline insertion is being performed by electric-layout-mode.
    * lisp/electric.el (electric-indent-post-self-insert-function):
    Reindent previous line unless operating under
    (electric-layout-post-self-insert-function-1): Bind
    electric-indent-inhibit to 'electric-layout-mode.
    * test/lisp/electric-tests.el
    (electric-layout-control-reindentation): New test.
electric-tests.el 34.3 KB