From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Van Dusen Newsgroups: gmane.emacs.help Subject: Re: etags and php classes Date: Thu, 3 Apr 2014 04:47:02 -0500 Message-ID: References: <83wqf7btww.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1396523016 7623 80.91.229.3 (3 Apr 2014 11:03:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 11:03:36 +0000 (UTC) Cc: help-gnu-emacs To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 13:03:29 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVeHh-00075K-Ap for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 11:50:09 +0200 Original-Received: from localhost ([::1]:42954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVeFI-00018w-V4 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 05:47:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVeF0-00014N-AC for help-gnu-emacs@gnu.org; Thu, 03 Apr 2014 05:47:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVeEu-0004gm-A8 for help-gnu-emacs@gnu.org; Thu, 03 Apr 2014 05:47:22 -0400 Original-Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:63484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVeEn-0004cp-8Z; Thu, 03 Apr 2014 05:47:09 -0400 Original-Received: by mail-ob0-f173.google.com with SMTP id gq1so1673425obb.32 for ; Thu, 03 Apr 2014 02:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Hvp1rWJDFsnmN4gMZP5bi3fFoYKy+roq5ZdfPsGZJ0E=; b=jGHUIYEFXJ6N9zYRedummiIPv8b28btetv9qvhYjxSRcAyY0Kw4RRhQzPjykgevZJF 0LliupMYWLdBUKQTNXGE10o3bGRdUU9DvJ6RAZW6rqEVMmZ63IXagIOwYiu1AAf6CKoB Oog88NyxZXfq0z51XCv9AbAyc4j283s2PUjcWN707VKHyiNanq7K3GdWFRbj99VzMh4/ dtRr8CMneLdgE6jNMM7GlzslPq1Xl7J0TgvZGo4aMx88/cQ15wWcsk9ZrYsffduhNZg7 Yxt04ypsaqPOnY88lkEVMCxwdOykuLMO627JDgcYhW8hZwGN3TMmEuuDeYDGEgGjr3j9 xZFw== X-Received: by 10.60.160.201 with SMTP id xm9mr1810506oeb.50.1396518427636; Thu, 03 Apr 2014 02:47:07 -0700 (PDT) Original-Received: from [192.168.0.27] (cpe-76-184-166-92.tx.res.rr.com. [76.184.166.92]) by mx.google.com with ESMTPSA id l5sm8204959obh.15.2014.04.03.02.47.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 02:47:05 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1874) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96918 Archived-At: On Apr 3, 2014, at 1:27 AM, Luca Ferrari wrote: >=20 > Consider the following simple file (class): >=20 > =20 > class Foo{ > public function doSomething(){ > echo "Something"; > } >=20 > public function doSomethingElse(){ > echo "Else"; > } > } >=20 >=20 > ?> >=20 > then, if I rebuild the tags file with > etags --members `find . -name '*.php'` >=20 > and then list the tags for Foo I got (M-x list-tags Foo.php): >=20 > Tags in file `/sviluppo/php/edilweb/edilweb/classes/Foo.php': >=20 > class Foo{ >=20 >=20 > If I search for one of the functions (M-.) I got: >=20 > No tags containing doSomethingElse >=20 Looking at the output of stags =97help, I see that it lists support for PHP only up to php4. PHP4 doesn't support visibility operators (public, private,=20 protected), so if you remove those, and rerun stags, M-x list-tags will display the functions. hth, Chris.=