[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20846: 24.4; Electric-indent-mode does not call indent-line-function
From: |
Stefan Monnier |
Subject: |
bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment |
Date: |
Fri, 28 May 2021 10:09:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Then that sentence is misleading and should be rephrased, because my
> reading of it is that it clearly states that auto-indentation inside
> strings is generally impossible, and expects the implementations to
> behave like that.
[ It does not say intend to that. It says to return `noindent` when
indentation is impossible and gives "inside a string" as an example of
a reason why indentation might not be possible. ]
In any case, this argues in favor of `electric-indent-mode` calling
`indent-line-function` even when we're inside a comment.
The (nth 8 (syntax-ppss)) test has been in `electric-indent-mode` from
the very beginning, but I must say I can't remember why I put it in,
I think it was a mistake and we should remove it.
Especially since it can be re-added easily by configuring
`electric-indent-functions` for those modes/users who prefer it that way.
Stefan
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Lars Ingebrigtsen, 2021/05/26
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Eli Zaretskii, 2021/05/27
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Lars Ingebrigtsen, 2021/05/27
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Eli Zaretskii, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Dmitry Gutov, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Eli Zaretskii, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Dmitry Gutov, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Eli Zaretskii, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment,
Stefan Monnier <=
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Eli Zaretskii, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Lars Ingebrigtsen, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Stefan Monnier, 2021/05/29
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment, Lars Ingebrigtsen, 2021/05/30