doomemacs / doomemacs/core

Incorrect Closing Bracket Indentation on Emacs 28.0.5

Open
#5,200 2 comments 4 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

Proper indentation for the closing bracket in CPP (Or other related languages)

### What actually happened?

Doom Emacs 27 applies proper indentation to closing brackets ( in "if else , for loops etc" ) , whereas Doom Emacs 28 does not indents the closing brackets ( both native compiled and non-native compiled versions ( emacs-git) ) as can be seen in the attached image.
![image](https://user-images.githubusercontent.com/76173714/123147408-0fb6dc80-d470-11eb-9f24-d5247229fb89.png)

### Describe your attempts to resolve the issue

Tried disabling smart-parens mode , and explored various indentation function in emacs, though evil-indent can fix the wrong indentation , it has to be applied manually every time and doesn't seems to be a proper solution.

### Steps to reproduce

1.Open Doom Emacs 28+ ( Emacs-git or any other Native Emacs 28+ versions ) Note : Issue doesn't happens in Emacs 27
2.Open a C++ file.
3.Type a For loop and open "{" bracket and hit enter. The closing bracket will not be properly indented.

### System Information

https://pastebin.com/Q4uvdHnD

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.