-
Notifications
You must be signed in to change notification settings - Fork 16
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
Defer load seems causing problems on switching buffers #81
Comments
Hey thanks for reporting this bug and narrowing to down to a potential issue. I also use consult and haven't ran into this bug. Is it additionally, can you try setting these two variables and see if it resolves the issue for you
|
Follow up question, which package manager do you use? package.el? straight? elpaca? I ask because I was able to replicate a very similar behavior in a very specific situation - using If I use |
hmm i use use-package https://github.com/braineo/fate-emacs/blob/master/modules/fate-langs.el#L36-L49 but i do think i saw the prompt once for downloading parinfer-rust and i hit let me see if i can get more print on what's going on there |
(defun parinfer-rust--defer-loading (&rest _)
"Defer loading of `parinfer-rust-mode' until the buffer is in focus."
(when (eq (current-buffer)
(window-buffer (selected-window)))
+ (print (format "try to enable parinfer in %s" (buffer-name)))
(remove-hook 'window-selection-change-functions #'parinfer-rust--defer-loading t)
(parinfer-rust-mode))) i added this line and this is what happened i opened a file this is what i got (at this point i cannot copy and paste from emacs, it died pretty much :( starting from minibuf-1, the parinfer-mode seemed to keep calling itself? in mini buffer, which it should not. what comes to the last is the buffer i need parinfer running (treesit.el.gz) |
Hey, thanks for the help debugging this. I think I have a fix on the branch |
thanks for the very prompt fix! it seems my problem goes away with the fix. |
fixed it for me too, thank you <3 |
after 01bfb78
I started to get when i have a mini-buffer open (use
M-x
to bring up consult)the problem is gone after removing these added lines
the
window-selection-change-functions
seems to be an AOE affecting many things. i suspect every time my consult opens it makes emacs into a infinite loop on calling the defer load functionThe text was updated successfully, but these errors were encountered: