-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the use of semantic #11511
Improve the use of semantic #11511
Conversation
#7736 has disabled many good features
|
layers/+lang/c-c++/packages.el
Outdated
;; Disable semantic-idle-summary when use gtags layer. | ||
;; Gtags provides more useful information but can not do it properly | ||
;; when this mode is enabled since the minibuffer is cleared all the time." | ||
(defun spacemacs//disable-semantic-idle-summary-mode () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this function can be extracted to semantic
layer. Since it's being used in multiple layers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Is it proper to put it into semantic's packages.el?
894188a
to
b2965a2
Compare
And can you add entries for the changes to the changelog.develop. |
This reverts commit 9acfcf3.
In the changelog:
I'm guessing that the first word in the second sentence: "Always" was a typo, since the commit just says:
I fixed it. |
Thank you for contributing to Spacemacs! |
If |
@yyoncho might be able to help, s/he seems to be part of the lsp-mode team.
source: #11913 (comment) |
@bet4it this seems to be a semantic bug(it runs the major mode hooks for the files that it opens temporary but I need a callstack to confirm that, you may do M-x |
@duianto feel free to CC me for lsp related stuff. |
@yyoncho This is the callstack:
|
@bet4it yes, my guess was correct - semantic should not use |
This PR makes me happy beyond limits. Thank you @bet4it ! |
Hi @yyoncho, thanks for finding that. Has it already been reported to the core emacs developers, since semantic is now in builtin? Unfortunately semantic is still causing problems in emacs 27.2. |
It's also very slow parsing these files. I'm not sure how much that has to do with undo-tree, vs other hooks/modes, but it brought my attention to it. I'll try to do some investigation soon, but if anyone has any progress/ideas to report, I'm interested.
|
This pull request has the same effects as #9354, except that it works globally rather that only works in
emacs-lisp-mode
, and it's more clear what we have done and what we will lose.Other language layers are well configured in
spacemacs
, so I don't think we needsemantic
to search system databases for them.As what has been described in #7736 (comment), the setting in #7736 has been overrided by mode local variables and has no effects. So I revert it.
Resolve #1907.