Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • What's your setting for indent-tabs-mode? Not sure it's relevant here, but maybe. Commented Jul 6, 2020 at 23:10
  • I believe python-mode sets it to nil. In javascript buffers it's t. In both cases the behavior is as described above. Commented Jul 6, 2020 at 23:24
  • The usual solution is to add a newline before b. This works in all Python/Ruby/JS major modes. Commented Jul 8, 2020 at 2:03
  • Yeah, that solves it to an extent. And there seems to be no way to override it. At least not for Python. Commented Jul 8, 2020 at 19:55