From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: How to use etags in emacs Date: Thu, 09 Jul 2009 14:14:45 +0300 Message-ID: <87prcaumze.fsf@kobe.laptop> References: <87ljmy654s.fsf@kobe.laptop> <3b9893450907082130n4902d62ew2c91c105f7ef78fb@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247138245 393 80.91.229.12 (9 Jul 2009 11:17:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2009 11:17:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: n179911 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 09 13:17:18 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOrcq-0006Ok-7W for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 13:17:17 +0200 Original-Received: from localhost ([127.0.0.1]:59130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOrcp-00022V-Bw for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 07:17:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOrbH-0001DB-9B for help-gnu-emacs@gnu.org; Thu, 09 Jul 2009 07:15:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOrbC-000181-Db for help-gnu-emacs@gnu.org; Thu, 09 Jul 2009 07:15:38 -0400 Original-Received: from [199.232.76.173] (port=34834 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOrbC-00017o-51 for help-gnu-emacs@gnu.org; Thu, 09 Jul 2009 07:15:34 -0400 Original-Received: from igloo.linux.gr ([62.1.205.36]:37957) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOrbB-0000EI-IO for help-gnu-emacs@gnu.org; Thu, 09 Jul 2009 07:15:34 -0400 Original-Received: from kobe.laptop (adsl139-187.kln.forthnet.gr [77.49.10.187]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9) with ESMTP id n69BEklN020807; Thu, 9 Jul 2009 14:14:54 +0300 Original-Received: by kobe.laptop (Postfix, from userid 1000) id 539B8C000; Thu, 9 Jul 2009 14:14:45 +0300 (EEST) In-Reply-To: <3b9893450907082130n4902d62ew2c91c105f7ef78fb@mail.gmail.com> (n179911@gmail.com's message of "Wed, 8 Jul 2009 21:30:41 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) X-Hellug-MailScanner-ID: n69BEklN020807 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.836, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.56, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65891 Archived-At: On Wed, 8 Jul 2009 21:30:41 -0700, n179911 wrote: >On Wed, Jul 8, 2009 at 6:01 PM, >Giorgos Keramidas wrote: >>> But can you please tell me how can i >>> * find the occurrence of the place calling a certain function >>> * after i click 'M . find tag', it loads the .h file of that class. >>> How can i load the .cpp of that class? >> >> Repeated `C-u M-.' commands will cycle through all the places marked >> with the particular tag. > > Thanks. Is there anyway to list all the places which marked with the > tag. And when you said 'marked with the particular tag'. does it > include the place where it called that function and the place where > that function is declared and implemented? There is `M-x tags-search RET regexp RET'. This searches for tags matching `regexp' and it can iterate through more than one tag table. Once a single match is found you can find the next one with `M-,' and repeat until you have finished going through all the matches, or you have found what you were looking for. The temporary buffers that have no matches are closed as tags-search goes through the motions, so you are finally let with a buffer list like (a sample from my iswitchb buffer list): : MR Name Size Mode Filename/Process : -- ---- ---- ---- ---------------- :[ Default ] : setup.c 18454 C/l /work/foo/src/setup.c : net.c 18077 C/l /work/foo/src/net.c : % foo 2947 Dired by name /work/foo/ : * *Messages* 5070 Fundamental The buffers under `/work/foo' are those that had at least one match.