arnested/php-extras — pull request #5 by joddie (2013-06-09 20:38:47+00:00)
Title: Make eldoc documentation work when point is in a function argument list.

Hi!
Thanks for php-extras. I've been using it for work coding after being away from PHP for a while and it's making things much more pleasant.

This patch is a simple hack which improves the Eldoc support (IMO) by continuing to show the argument hints when point is within a function argument list. It works very simply: if the first call to `(gethash ...)' returns nil, then Emacs tries to go up one level of parens (when possible) and look up whatever symbol it finds there instead.

It might not be too hard to get it to highlight the current argument as well, but I've been too lazy to work that out so far ;-)