Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

php-show-arglist for built-in PHP functions #142

Open
drzraf opened this issue Feb 2, 2014 · 2 comments
Open

php-show-arglist for built-in PHP functions #142

drzraf opened this issue Feb 2, 2014 · 2 comments

Comments

@drzraf
Copy link

drzraf commented Feb 2, 2014

This could be seen as a documentation issue :
when using (php-show-arglist) on a PHP core function I'd expect to see it's prototype (what could be quicker than C-C C-F to browse www.php.net and often useful given the sometimes so strange order of PHP function's arguments).

But doing so bring up a "Visit tags table" prompt from what I deduce that the "php-completion-file" isn't used for (show-arg-file) since :

  1. this file is a shell-generated output which does not contains the PHP functions' arguments
  2. it's "not a valid tag file" (just plain-text)
    (php-show-arglist) does not seem to directly use "php-manual-path" neither.

Finally after looking at the code I went to think that (php-show-arglist) only applies to project-code for which a TAG file has been generated.

Thus my question is :

  • am I right when I think it's not currently possible or did I overlooked something ?
  • why no one has been interested in this up to now ?
  • has there been any attempt into converting the php-doc to etags parsable code in order to create a "built-in PHP TAG file" which could then be used by php-mode (php-show-arglist) ?

I don't know enough about etags to imagine and provide a PoF of the best/efficient way to do that (though I think it's feasible) neither I know if there is a huge performance penalty risk.

anyway, long-life php-mode !

@NateEag
Copy link
Member

NateEag commented Feb 3, 2014

You may find that php-auto-yasnippets by @ejmr would address some of your desires here.

I've found that it largely solves the problem of remembering PHP's inconsistent argument ordering.

@drzraf
Copy link
Author

drzraf commented Jul 26, 2019

#551

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

No branches or pull requests

2 participants