From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rafal Kurcz Newsgroups: gmane.emacs.help Subject: Re: How to use etags-select Date: Sat, 15 Sep 2007 03:03:02 -0700 Organization: http://groups.google.com Message-ID: <1189850582.840136.296170@r29g2000hsg.googlegroups.com> References: <1185011823.491178.262070@d55g2000hsg.googlegroups.com> <1185197038.360649@sj-nntpcache-3.cisco.com> <1185265027.418651.315530@m3g2000hsh.googlegroups.com> <1185296113.195452@sj-nntpcache-3.cisco.com> <1185550332.397562.17110@b79g2000hse.googlegroups.com> <1185561317.788809@sj-nntpcache-2.cisco.com> <1188648321.765941.18960@y42g2000hsy.googlegroups.com> <1188912686.245407@sj-nntpcache-2.cisco.com> <1188921369.769489@sj-nntpcache-3.cisco.com> <1188980849.574940.72080@o80g2000hse.googlegroups.com> <1189269664.714541.247600@50g2000hsm.googlegroups.com> <1189434792.450554@sj-nntpcache-3.cisco.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1189852845 18128 80.91.229.12 (15 Sep 2007 10:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2007 10:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 15 12:40:42 2007 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 1IWV4o-0000vf-KK for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Sep 2007 12:40:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWV4n-0000SH-LP for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Sep 2007 06:40:37 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.glorb.com!postnews.google.com!r29g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 83.14.252.50 Original-X-Trace: posting.google.com 1189850583 29916 127.0.0.1 (15 Sep 2007 10:03:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 15 Sep 2007 10:03:03 +0000 (UTC) In-Reply-To: <1189434792.450554@sj-nntpcache-3.cisco.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20070216,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 cns-gdn.emea.cpwr.corp:8001 (squid/2.5.STABLE6), 1.0 cns-gdn-ext.emea.cpwr.corp:3128 (squid/2.5.STABLE6) Complaints-To: groups-abuse@google.com Injection-Info: r29g2000hsg.googlegroups.com; posting-host=83.14.252.50; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:152101 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:47611 Archived-At: > > 1. Place the cursor on "__free_pages_ok" function declaration (mm/ > > page_alloc.c:62) and invoke > > etags-select-find-tag-at-point. It will lead You to the same tag while > > it should lead You to the definition (mm/page_alloc.c:501) > > An assumption is made that any taggable items are in fact tagged, otherwise > it becomes complicated trying to sort the two out. In this case the function > prototype (declaration) wasn't tagged, and since it looks exactly like the > function definition etags-select stops at the first matching line. If you > invoke etags like: > > etags --declarations *.c > > it works. I can't remember off the top of my head what the equivalent in > exuberant ctags is. Yes you are right. In exuberant-ctags this option is: exuberant-ctags --c-kinds=+p > > > 2. Place the cursor on "page_map_count(page)" function invocation (mm/ > > page_alloc.c:433) and invoke etags-select-find-tag-at-point. > > It will display among others the "reset_page_mapcount" as a candidate > > to jump. I think that it is not a good candidate. > > For me it looks rather like TAGS problem since C-u M-. leads You to > > that symbol as well. > > Although you say in a later message that this is OK, I'm not sure it is. > I think it might be confusing two function names with the same suffix. > It should be an easy enough fix ... I need to create a test case and sort > things out. Sorry for no beeing accurate. It works in exuberant-ctags but does not work in etags. Thank You for help