Closed kaaresl closed 9 years ago
So yeah, actively setting drupal-get-function-args
to t in my .emacs works, but that's not the way around it? :-)
You are right. There is something wrong with the order of execution.
I'll have to rewrite some things to make this work as intended.
@kaaresl, I might have fixed this problem in 319acd576147144985dbb38d5a5747703c60d2eb without realising it until now or maybe I did fix it but just forgot when I finally committed it (the change had been uncommitted in my working copy for a long time).
Actually right now I'm not even sure if it is really a fix or it just works by accident because of a new order of execution. Too tired to figure it out now.
At least it currently works on my machine. Could you have a look at whether it works for you as well (if you remove the hack in init.el?
Without having looked at the code, only removing the hack (setq drupal-get-function-args t)
, this now works like expected. (using latest from melpa) Thanks!
Cool. I'll just pretend I solved this knowing what I did :smile:
This might be a support request or a bug report, but I can't get the
eldoc-documentation-function
to point todrupal-eldoc-documentation-function
due to this failed test in drupal-mode.el:296Now, ggtags.el for sure sets
drupal-get-function-args
todrupal/ggtags-get-function-args
. I've verified this by examining the variable in the buffer after drupal-mode is loaded, so there is something wrong in the execution order here: The test fordrupal-get-function-args
is run before ggtags.el's drupal-mode-hook, so eldoc-mode isn't enabled.So now comes the support request / bug: How can I make ggtags.el's set the value for
drupal-get-function-args
before the test for eldoc-mode? Is there a trick I can use in my .emacs?Otherwise, thanks for very nice drupal-mode in emacs. It's by far better than anything else I've tested out there.