-
Notifications
You must be signed in to change notification settings - Fork 311
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
Weird issues since cleanup commit 18f7b1 #673
Comments
Oh, I think see what it is. The change below creates a buffer in (defvar yas--font-lock-keywords
(append '(("^#.*$" . font-lock-comment-face))
- lisp-font-lock-keywords-2
+ (with-temp-buffer
+ (emacs-lisp-mode)
+ (font-lock-set-defaults)
+ (if (eq t (car-safe font-lock-keywords))
+ ;; They're "compiled", so extract the source.
+ (cadr font-lock-keywords)
+ font-lock-keywords)) |
Makes sense, thank you for the quick response. In the mean time we switched temporarily to the last stable version. |
Proposed fix in #674 |
I'm thinking a smaller fix, like #676. Can you try that out and confirm it works? I was using |
Testing it. |
Fixes the OP error but if a snippet is visited without yasnippet loaded first the following error happens:
|
I added an |
Oh ok, I indeed tested without updating the autoload. LGTM 👍 |
Well yes, because I only added it after you reported the problem :) There is still the problem of font lock not working the first time. |
Indeed, if you do that before yasnippet.el is loaded we might get
|
Yeah, that seems to work better. |
Hey guys,
Bear with me since I have no repro steps but I will try to explain the symptoms clearly enough for you to find a solution.
First I'm pretty sure it does not come from Spacemacs config but OTOH if I
emacs -Q
and require yasnippet the symptoms does not appear.Here are the symptoms:
(void-function yas--load-pending-jits)
emacs -Q
--> worksyas-minor-mode
toemacs-lisp-mode-hook
yasnippet.el
and move around some code, namely movingyas--load-pending-jits
beforedefine-minor-mode
and the error disappeared and was replaced by another missing symbol used inyas--load-pending-jits
Recursive load
error.Sorry for lacking a repro step, I will try to add one at some point. I hope this description of the symptoms will be enough and most importantly I hope to learn why those errors are triggered.
cc @monnier @npostavs
EDIT: these errors let a dangling hook in post-command-hook and prevent Emacs from being usable.
The text was updated successfully, but these errors were encountered: