From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Scott Frazer Newsgroups: gmane.emacs.help Subject: Re: How to use etags-select Date: Mon, 10 Sep 2007 10:33:12 -0400 Organization: Ye 'Ol Disorganized NNTPCache groupie Message-ID: <1189434792.450554@sj-nntpcache-3.cisco.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189442044 3860 80.91.229.12 (10 Sep 2007 16:34:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 16:34:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 02:33:50 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 1IUrvg-0008BF-Sq for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 00:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUkRK-0001RI-5s for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Sep 2007 10:40:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!out04a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!hwmnpeer01.phx!news.highwinds-media.com!hw-filter.phx!newsfe08.phx.POSTED!53ab2750!not-for-mail User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1189269664.714541.247600@50g2000hsm.googlegroups.com> Cache-Post-Path: sj-nntpcache-3.cisco.com!unknown@scfrazer-wxp.cisco.com X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/) Original-Lines: 40 Original-NNTP-Posting-Host: 171.70.140.16 Original-X-Complaints-To: newsadmin@cisco.com Original-X-Trace: newsfe08.phx 1189434792 171.70.140.16 (Mon, 10 Sep 2007 07:33:12 MST) Original-NNTP-Posting-Date: Mon, 10 Sep 2007 07:33:12 MST Original-Xref: shelby.stanford.edu gnu.emacs.help:151933 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:47442 Archived-At: Rafal Kurcz wrote: >> Now it works very fast. >> I did the same test as above on the same machine - now I get the list >> of tags immediately. >> Great thanks for help Scott. > > etags-select is now awesome tool. I use it a lot to navigate 2.6.22.6 > kernel source. > I also found 2 another problems. They don't seem to be big: > > 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. > 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. Scott