[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: |
Eli Zaretskii |
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 17:16:53 +0300 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Dmitry Gutov <dgutov@yandex.ru>, larsi@gnus.org,
> robin.neatherway@gmail.com, 20846@debbugs.gnu.org
> Date: Fri, 28 May 2021 10:09:41 -0400
>
> > 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. ]
Then how about saying the below instead?
If it is called somewhere where it cannot auto-indent, the function
should return `noindent' to signal that it didn't.
(I intentionally removed the example because I think it isn't really
needed, and is actually harmful in this case.)
- 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, 2021/05/28
- bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment,
Eli Zaretskii <=
- 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