Closed m0smith closed 9 years ago
I just tried to reproduce this so as to work on it. I started up an emacs editing a groovy file, which takes me to groovy-mode. I then tried to execute malabar-groovy-mode to switch and see if I can get the above, but I get: Cannot open load file: not a directory, semantic/db-javap.
Ok. I will try and get a simpler example.
I found the problem, it was with the code adding to the hook.
I'm pleased the problem was found. There were hints that the problem was in the definition of the hook, a lack of quoting. Was this the case?
Exactly.
@m0smith Could you elaborate on what your issue was. I've encountered a similar issue and am scratching my head trying to understand what I am doing wrong. I have a hunch that if I see what you did it will enlighten me.
I think this is the commit: https://github.com/m0smith/malabar-mode/commit/ae86a7cbc7fa5476fd124336cda5dff9bdcc2aaa
Basically, I was not passing a lambda to eval-after-load
. Instead I was calling the function and adding the result, which was nil
Thanks for the quick response. Having the commit to look at helps enormously. While my problem looks a little different, at least I have something to chew on now. Much appreciated.
I've been banging my head over this error:
symbol's value as variable is void: inf-groovy-keys
I don't know lisp that well or really know what's wrong but I think the above commit fixes it. At least, my error went away after I changed it there and in the pkg file from melpa. (Grepped for add-hook
and added lambdas basically.)
It looks like when the hook is evaluated, it is calling the first element in the hook with the second. Very weird.
Groovy mode: .emacs.d/elpa/groovy-mode-20141209.1133/
The backtrace