Article View: gnu.emacs.bug
Article #87421emacs/etags bug?
From: Francesco Potorti`
Date: Fri, 23 Sep 1994 12:02
Date: Fri, 23 Sep 1994 12:02
29 lines
1496 bytes
1496 bytes
Sorry for the long delay in answering this.
I posted the following to gnu.emacs.help and received no response.
I couldn't get tags to work for typedefs. For example, when I have:
typedef int bool; /* in some header file */
bool foo() /* in another .c file */
{
...
}
Now if I do a M-. on bool, the cursor would go to the routine foo
rather than the typedef bool. What's wrong?
Yes, this is a bug in etags.el.
The TAGS file looks like this (control characters translated):
^L
boo.c,14
bool foo(^?1,0
^L
boo.h,27
typedef int bool;^?bool^A1,0
The problem is that etags.el does something wrong when looking to the
`name' of the tag (the string between ^? and ^A). The name should be
preferred when searching for tags. Somehow it is not, in this case.
Technical Details
Message-ID:
<m0qo9Bp-0002S1C@fly.cnuce.cnr.IT>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!fly.cnuce.cnr.it!potReferences:
<9408130304.AA16858@sunshine>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,2a09bff28ceb90c8 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-23 17:06:09 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!fly.cnuce.cnr.it!pot From: pot@fly.cnuce.cnr.it (Francesco Potorti`) Newsgroups: gnu.emacs.bug Subject: emacs/etags bug? Date: 23 Sep 1994 08:02:19 -0400 Organization: GNUs Not Usenet Lines: 29 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <m0qo9Bp-0002S1C@fly.cnuce.cnr.IT> References: <9408130304.AA16858@sunshine> Reply-To: pot@cnuce.cnr.it