Skip to content
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

MODE-local-vars-hook in org mode #7805

Open
4 tasks done
fakeGenuis opened this issue Apr 9, 2024 · 1 comment
Open
4 tasks done

MODE-local-vars-hook in org mode #7805

fakeGenuis opened this issue Apr 9, 2024 · 1 comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet

Comments

@fakeGenuis
Copy link

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.

  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.

  • The issue can be reproduced on the latest available commit of Doom.

  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

open a org file quickly

Current behavior

Recently I noticed that my first opening an org file times increased to around 25 seconds. After run with --debug-int, there is something

* 359.615173:*:hook:sh-mode-local-vars-hook: run lsp!
* 384.044908:*:hook:org-mode-local-vars-hook: run +indent-guides-disable-maybe-h
* 384.047168:*:hook:org-mode-local-vars-hook: run +org-init-gifs-h

showing that lsp! takes 25 seconds?! Though the time consuming of lsp! may be another issue (which in my another computer it takes around 0.5 second). I want to know which trigger those MODE-local-vars-hook? The only info I get is in lisp/doom-start.el. I know those language hooks may be called because of i have their src code block in the org file, do it's expected behavior? Also as I know lsp! will not function in org mode or org-src mode

Steps to reproduce

  1. run emacs with --debug-init
  2. open a org file with some language src block inside it

System Information

https://pastebin.com/fYeeqwDX

@fakeGenuis fakeGenuis added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Apr 9, 2024
@fakeGenuis
Copy link
Author

my apologies. through profile-start I see problem comes from org-superstar package. After remove +pretty entry in org module, everything looks fine. This is a similar issue Org mode files hangs emacs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet
Projects
Status: No status
Development

No branches or pull requests

1 participant