emacs.d icon indicating copy to clipboard operation
emacs.d copied to clipboard

Incorrect Closing Bracket Indentation on Emacs 28.1

Open Stumble opened this issue 4 years ago • 3 comments

Emacs 28.1 installed through snap. $ emacs --version GNU Emacs 28.1

if (cond) {
    for (auto a : v) {}
                      ^ when press enter in between brackets
}

expected:
if (cond) {
    for (auto a : v) {
        // cursor is here
    } 
}

but on Emacs 28.1:
if (cond) {
    for (auto a : v) {
        // cursor is here
}       // <-- incorrect indentation.
}

Same issue as this: https://github.com/hlissner/doom-emacs/issues/5200

Stumble avatar Apr 16 '22 05:04 Stumble

because 28.1 enabled electirc-pair-mode? Raise a issue to Emacs core team or the author of that mode.

redguardtoo avatar Apr 16 '22 09:04 redguardtoo

Same issue here. Really annoying.

phye avatar Jun 12 '22 13:06 phye

Someone already raised an issue, but still no updates from upstream... https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55340

phye avatar Jun 12 '22 13:06 phye

emacs 28.2 still have this problem, any solutions now?

sbwcwso avatar Nov 28 '22 01:11 sbwcwso

fixed c773ce13

redguardtoo avatar Feb 08 '23 03:02 redguardtoo

fixed c773ce1

Thanks! Just upgraded to 28.2 and verified!

Stumble avatar Feb 08 '23 22:02 Stumble