|
From: | Dmitry Gutov |
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 16:35:51 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 28.05.2021 16:06, Eli Zaretskii wrote:
Then that sentence is misleading and should be rephrased,
Maybe? I don't have a better wording to suggest off the top of my head.
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.
Consider this from a design POV: if all indentation functions were supposed to return 'noindent when inside a string or comment, indent-for-tab-command could do that check itself and avoid calling indent-line-function entirely in that case.
And also that #'indent-relative (the default value of indent-line-function) does indent inside strings and comments.
[Prev in Thread] | Current Thread | [Next in Thread] |