* Re: Trying to go to the definition of a function
[not found] ` <87r5oe46sb.fsf@lion.rapttech.com.au>
@ 2010-02-22 13:37 ` Javier Garcia
2010-02-23 11:11 ` Javier GARCIA
0 siblings, 1 reply; 2+ messages in thread
From: Javier Garcia @ 2010-02-22 13:37 UTC (permalink / raw)
To: help-gnu-emacs
On 02/21/2010 10:29 PM, Tim X wrote:
> Is your TAGS file up to date? Has it got the references you expect? What
> command are yu using to generate the tags file? Which version of emacs
> are you running?
I have opened file TAGS and it is not referencing the functions that are
declared this way ("public function foo()") because is PHP 5 syntax, i
supose.. No problem with the functions this way: "function foo()"
Any way emacs detect the PHP 5 syntax?
I have found this:
http://patrickdlogan.posterous.com/editing-php-with-tags-and-emacs-or-vim-ish-to
Maybe you can help me with the comment i wrote in that article
(tirengarfio).
Oops: my TAGS file is up to date. Im using: etags `find
/opt/lampp/htdocs/rs -name "*.php"`. Emacs 23.1.2.
Javi
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Trying to go to the definition of a function
2010-02-22 13:37 ` Trying to go to the definition of a function Javier Garcia
@ 2010-02-23 11:11 ` Javier GARCIA
0 siblings, 0 replies; 2+ messages in thread
From: Javier GARCIA @ 2010-02-23 11:11 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 583 bytes --]
Hi again,
i have found out is possible generate tags that take PHP5 in consideration
with ctags and option "-e" (emacs).
But i dont know yet if it is possible going directly to a function in case
you have a function with the same name in several class.
Here you have an example:
Imagine i have tagged several classes (class1, class2, class3, etc) that
have the method foo().
If i have this code:
$class3_object = new class3();
$class3_object->foo();
I'd like to go *directly* to the foo() definition in the class3, because it
is the class of the object "class3_object".
Javi
[-- Attachment #2: Type: text/html, Size: 691 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-23 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1601.1266780081.14305.help-gnu-emacs@gnu.org>
[not found] ` <87r5oe46sb.fsf@lion.rapttech.com.au>
2010-02-22 13:37 ` Trying to go to the definition of a function Javier Garcia
2010-02-23 11:11 ` Javier GARCIA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).