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

Failure to load in Emacs 25 #30

Closed
DarthFennec opened this issue Sep 28, 2016 · 7 comments
Closed

Failure to load in Emacs 25 #30

DarthFennec opened this issue Sep 28, 2016 · 7 comments
Assignees

Comments

@DarthFennec
Copy link

I'm using Emacs 25.1.1. When I try to run groovy-mode, the mode fails to start, with the following error:

Eval error in the ‘c-lang-defconst’ for ‘c-constant-kwds’ in groovy-mode:
Eval error in the ‘c-lang-defconst’ for ‘c-basic-matchers-before’ in groovy-mode:
Eval error in the ‘c-lang-defconst’ for ‘c-matchers-2’ in groovy-mode:
c-get-lang-constant: Invalid function: (quote ("true" "false" "null"))
@bltavares
Copy link

I have very little context on elisp and the package itself, but I gave it a try.

--- /Users/bruno/groovy-mode.el 2016-10-03 11:14:50.000000000 -0300
+++ groovy-mode.el  2016-10-03 11:14:00.000000000 -0300
@@ -330,7 +330,7 @@
 ;;  Java does not define these pseudo-kewords as keywords, why not?

 (c-lang-defconst c-constant-kwds
-  groovy '( "true" "false" "null" ))
+  groovy `( "true" "false" "null" ))

 ;;  Why does Java mode not put `super' into the `c-primary-expr-kwds?

Changing the quoting mark did the trick here. Not sure why. It does not work on Emacs 24.5 with this change.

@russel
Copy link
Contributor

russel commented Oct 15, 2016

@DarthFennec Debian Sid has now switched from Emacs 24 to Emacs 25 (25.1.1). I just tried editing a Groovy file and did not see the problem you reported. Even though it "works for me", is there still a problem for you?

@russel
Copy link
Contributor

russel commented Oct 15, 2016

@bltavares The normal quote (') is correct here. Although backquote(`) should work, the extra facilities of that quote form would not be used here so the behaviour using either should be identical.

@russel russel self-assigned this Oct 15, 2016
@DarthFennec
Copy link
Author

Yeah, I don't have this problem anymore. No idea what was causing it, seeing as my emacs hasn't been updated since, and this mode hasn't changed in a way that would affect this either. Very strange. Also very strange that the quasiquote would work when a normal quote didn't (by the way, thank you @bltavares for this, it fixed the issue for me in the meantime). But everything seems to work normally now, so I think this is resolved.

@bltavares
Copy link

bltavares commented Oct 20, 2016

@DarthFennec Yeah, it was odd that ` worked. I don't have the issue anymore. Probably something unrelated, or it was bad compiled file.

@russel
Copy link
Contributor

russel commented Oct 20, 2016

Good to know it works now. I was having a very hard time thinking what the problem could be. The idea of a badly compiled file that got recompiled would fit, but I am not sure what might have caused that.

@mcraveiro
Copy link

mcraveiro commented Dec 14, 2016

Hi,

I experienced a similar problem [1] and managed to fix it by uninstalling and reinstalling the package from within package-list-packages.

Hope it helps.

[1] emacs-csharp/csharp-mode#97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants