[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24648: 25.1; smie indentation in strings

From: Dmitry Gutov
Subject: bug#24648: 25.1; smie indentation in strings
Date: Wed, 12 Oct 2016 20:08:38 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0

On 12.10.2016 19:57, Leo Liu wrote:
I have a hard time
getting used to this change. Previously noindent means no indention now
it seems to mean any indention.

Only when you explicitly press TAB inside a string. That doesn't change region indentation, for instance.

To be clear, I probably don't care one way of the other. But just yesterday, a user requested this behavior in js2-mode: https://github.com/mooz/js2-mode/issues/227#issuecomment-253138470

And there are exceptions for example
lisp modes don't adopt this behaviour. Any ideas why?

Because most indent-line-function's don't return `noindent' when they should (in comments and strings).

We should probably patch that.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]