ThibautVerron / magma-mode

An emacs major-mode for editing magma files
5 stars 1 forks source link

Indentation bug with emacs 24.3 #10

Closed ThibautVerron closed 4 years ago

ThibautVerron commented 9 years ago

With emacs 24.3, when a line ends with a comment, the next line fails to indent properly.

Example:

a := 2+2; // This is a comment
        b := 3+3;

I cannot reproduce it with emacs 24.4, so I assume that it is a bug in smie.el which was fixed at some point.

For now, as a work-around, I can only recommend to either upgrade to 24.4 or to move such comments to a line of their own. Manually forcing the indentation would also work if one never reindents the entire buffer.

ThibautVerron commented 4 years ago

Closing this one for now, it is 2020. If someone has a fix or more clues on what is happening, please feel free to bump.