diff options
| author | João Távora | 2019-05-15 13:10:22 +0100 |
|---|---|---|
| committer | João Távora | 2019-07-02 16:10:45 +0100 |
| commit | 5e88b50d542b6d1c4ff43f8ae0fabe8a647d842e (patch) | |
| tree | 46c5c7e22127d8e6aad017f925514a0fb62c19ca /src | |
| parent | 2a2a1bdb8f0f149aaf736a61685feec9380be1b1 (diff) | |
| download | emacs-5e88b50d542b6d1c4ff43f8ae0fabe8a647d842e.tar.gz emacs-5e88b50d542b6d1c4ff43f8ae0fabe8a647d842e.zip | |
Correctly reindent previous line in electric-indent-mode
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-mode.
(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.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions