php-eldoc
php-eldoc copied to clipboard
Feedback on ELPA packaging
A few points of feedback having read through the code:
- Perhaps it would even be possible to invoke
probe.phpusing the command-linephpexecutable and adjusting the PHPinclude_pathto point at the project being inspected. - You should also include some
;;;###autoloadcookies, at least forphp-eldoc-enable, and I'd also suggest autoloading the setup hook:
;;;###autoload
(add-hook 'php-mode 'php-eldoc-enable)
ac-sourcesis not buffer-local, so you shouldn't addac-source-php-eldocto it every timephp-eldoc-enableis called; either makeac-sourcesbuffer-local, or just add the source once at global scope. (Making the var buffer local would be preferable IMO.)
Hope that helps!
-Steve
Thanks for the feedback.
-
Good idea, I'll have a look at it.
-
I've added a cookie for
php-eldoc-enable, as you've suggested. I'm not a fan of self-installing packages. Someone might want to use the same functions in a different way. -
You might be confusing ac-sources with another variable. This one has both default and buffer-local values. It's buffer-local by default.
Evgeni
- I've added a cookie for php-eldoc-enable, as you've suggested. I'm not a fan of self-installing packages. Someone might want to use the same functions in a different way.
Fair enough!
- You might be confusing ac-sources with another variable. This one has both default and buffer-local values. It's buffer-local by default.
Yes, you're right, sorry. I'm not sure if it was always buffer-local, but it certainly is now.
-Steve
I'll leave this bug open because of first point.