-
Notifications
You must be signed in to change notification settings - Fork 16
Symbol's value as variable is void: binding #9
Comments
It looks like a error with the compiler that didn't show up in my version of emacs. I'm pushing a fix now, but you can probably delete evil-magit.elc for a quick workaround |
ok, I just pushed what I think should fix this. Sorry for the mistake and thanks for the report |
That commit just broke it for me. Reverting the commit fixes the issue.
I'm pretty sure the issue is you're not quoting STATE or DEF and you're passing an already expanded keymap. So the eval is seeing:
instead of:
This code seems to work, I added a quote to (nth 0 binding) and (nth 3 binding) and removed the symbol-value call.
Additionally, The selectively evaling and quoting forms seems very suspect. Are you sure the original version was causing the error? |
@cohomology It's reverted
Right, so much for a quick fix
Agreed. I'll set this up differently Sorry for the trouble @jschaf and @cohomology. There must have been something wrong with my environment that wasn't showing the error on my side. I do compile the files. It was probably a stupid mistake somewhere. |
@cohomology I rewrote the logic for setting the main keys and pushed to the new-define-key branch. Before I merge this, would you be able to test the changes on your side to see if it fixes the original issue? FYI this branch also includes all of the other stuff I have done recently (setting up a test environment for example). |
@justbur I now get a |
Is that on the new branch?
|
@cohomology oh right it must be. That is probably the root cause of the original issue, because it would have triggered |
@cohomology I'm confident that the new branch is correct now. I added a check for an uninitialized keymap, which I believe is the cause of the problem you were having. When you use the new branch with the latest commit, I believe you will see a message about a keymap that is not bound. That should help track down the problem. |
As you suspected, I now get the following in my messages window:
What to do now? There is no debugger opening via |
@cohomology well the nil was unexpected actually :-). Can you paste the value you get from |
Nevermind. I see the problem. You probably don't use |
|
Yep, that's it. Everything should work for you now on that branch. I appreciate the quick responses. Thank you |
Yeah, it works now. |
Great. I'm going to merge then. |
Bugus commit: d45808c
After updating to the above mentioned commit, I can not start emacs anymore. Even --debug-init does not help.
As this hits all melpa users, and it is unknown so far, why you are not affected by this, I suggest reverting melpa to a previous state.
The error message from emacs is given in the title of this issue report.
If you can't reproduce this with your .emacs.d, you can do:
(After the version from melpa doesn't seem to work anymore, I stopped using evil-magit from melpa and took an old version as a git submodule in my .emacs.d).
Best regards,
Kilian.
The text was updated successfully, but these errors were encountered: