unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* etags problem
@ 2005-04-02 16:16 David L
  0 siblings, 0 replies; 2+ messages in thread
From: David L @ 2005-04-02 16:16 UTC (permalink / raw)


I'm not sure if etags is considered to be a component of emacs, but in case 
it is...

I posted this bug report to bugzilla.redhat.com:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=151390

           Summary: etags fails to generate tags under some conditions
           Product: Fedora Core
           Version: fc3
          Platform: i386
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: normal
         Component: emacs
        AssignedTo: petersen@redhat.com
        ReportedBy: idht4n@hotmail.com


>From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111
Firefox/1.0

Description of problem:
etags doesn't create a tag for main in the following program:

#define TCL_DONT_WAIT		(1<<1)

int Tcl_DoOneEvent(int a)
{
  return 0;
}

void MainLoop()
{
  while (Tcl_DoOneEvent(TCL_DONT_WAIT)!=0) {
  }
}


int main(int argc, char *argv[])
{

}


Version-Release number of selected component (if applicable):
emacs 21.3

How reproducible:
Always

Steps to Reproduce:
1. Paste the example code above into a file named foo.cc
2. execute "etags foo.cc"
3. execute "grep main TAGS" and see no tag for main


Actual Results:  No tag generated for main.

Expected Results:  A tag should be generated for main.

Additional info:

It also didn't work in redhat9.  It does work if the while (Tcl...) loop is
removed.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: etags problem
@ 2005-04-04  9:09 Francesco Potorti`
  0 siblings, 0 replies; 2+ messages in thread
From: Francesco Potorti` @ 2005-04-04  9:09 UTC (permalink / raw)
  Cc: bug-gnu-emacs

>           Summary: etags fails to generate tags under some conditions
>           Product: Fedora Core
>           Version: fc3
>          Platform: i386
>        OS/Version: Linux
>            Status: NEW
>          Severity: normal
>          Priority: normal
>         Component: emacs
>        AssignedTo: petersen@redhat.com
>        ReportedBy: idht4n@hotmail.com

Dear David, the etags distributed with Emacs 21.3 is more than three
years old, and has some bugs that are corrected in the newest version,
which is not officially released with Emacs yet.

In the example that you report you are even lucky, because on the same
test case the 21.3 etags dumps core on my box :-)

I suggest you download
<ftp://fly.isti.cnr.it/pub/software/unix/etags.tar.gz>, where you will
find the latest etags.c and man page together with a precompiled static
binary for Linux.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-04  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-02 16:16 etags problem David L
  -- strict thread matches above, loose matches on Subject: below --
2005-04-04  9:09 Francesco Potorti`

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).