From: Chris Van Dusen <cavandusen@gmail.com>
To: Luca Ferrari <fluca1978@infinito.it>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: etags and php classes
Date: Thu, 3 Apr 2014 04:47:02 -0500 [thread overview]
Message-ID: <B70FA556-23B5-463B-A03A-DC8D96790633@gmail.com> (raw)
In-Reply-To: <CAKoxK+5-OzGV1HKN5wyxuNrYrGefjW08G1JK2O4zFKPMnCKeOw@mail.gmail.com>
On Apr 3, 2014, at 1:27 AM, Luca Ferrari <fluca1978@infinito.it> wrote:
>
> Consider the following simple file (class):
>
> <?php
>
> class Foo{
> public function doSomething(){
> echo "Something";
> }
>
> public function doSomethingElse(){
> echo "Else";
> }
> }
>
>
> ?>
>
> then, if I rebuild the tags file with
> etags --members `find . -name '*.php'`
>
> and then list the tags for Foo I got (M-x list-tags Foo.php):
>
> Tags in file `/sviluppo/php/edilweb/edilweb/classes/Foo.php':
>
> class Foo{
>
>
> If I search for one of the functions (M-.) I got:
>
> No tags containing doSomethingElse
>
Looking at the output of stags —help, I see that it lists support
for PHP only up to php4.
PHP4 doesn't support visibility operators (public, private,
protected), so if you remove those, and rerun stags,
M-x list-tags will display the functions.
hth,
Chris.
next prev parent reply other threads:[~2014-04-03 9:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 6:40 etags and php classes Luca Ferrari
2014-04-02 16:03 ` Eli Zaretskii
2014-04-03 6:27 ` Luca Ferrari
2014-04-03 9:47 ` Chris Van Dusen [this message]
2014-04-03 15:22 ` Luca Ferrari
2014-04-03 18:00 ` cavd
2014-04-03 23:45 ` Leo Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B70FA556-23B5-463B-A03A-DC8D96790633@gmail.com \
--to=cavandusen@gmail.com \
--cc=fluca1978@infinito.it \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.