From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Steffen DETTMER" Newsgroups: gmane.emacs.bugs Subject: etags (GNU Emacs 21.4.20): identifier omitted situation in TAGS (minor bug) Date: Mon, 14 May 2007 10:25:23 +0200 Message-ID: <20070514082523.GB12890@elberon.bln.de.ingenico.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1179166461 3819 80.91.229.12 (14 May 2007 18:14:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 May 2007 18:14:21 +0000 (UTC) Cc: steffen@dett.de To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 14 20:14:19 2007 Return-path: Envelope-to: geb-bug-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 1Hnf3m-0006Ej-Fo for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 May 2007 20:14:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnfBY-0002Ji-OA for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 May 2007 14:22:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HnWLF-0005Sq-1r for bug-gnu-emacs@gnu.org; Mon, 14 May 2007 04:55:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HnWLC-0005PT-Ff for bug-gnu-emacs@gnu.org; Mon, 14 May 2007 04:55:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnWLC-0005PE-7n for bug-gnu-emacs@gnu.org; Mon, 14 May 2007 04:55:38 -0400 Original-Received: from smtp.fr.ingenico.com ([81.80.165.125] helo=frsnadgat1.usr.ingenico.loc) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HnWDQ-0005H2-Fu for bug-gnu-emacs@gnu.org; Mon, 14 May 2007 04:47:37 -0400 Original-Received: from frsnprexc1.usr.ingenico.loc ([10.10.16.51]) by frsnadgat1.usr.ingenico.loc (SMSSMTP 4.1.15.47) with SMTP id M2007051410253606585 ; Mon, 14 May 2007 10:25:36 +0200 Original-Received: from desnprexc.usr.ingenico.loc ([10.12.5.30]) by frsnprexc1.usr.ingenico.loc with Microsoft SMTPSVC(6.0.3790.1830); Mon, 14 May 2007 10:25:37 +0200 Original-Received: from desnprexc.usr.ingenico.loc ([10.12.5.30]) by desnprexc.usr.ingenico.loc with Microsoft SMTPSVC(6.0.3790.211); Mon, 14 May 2007 10:25:35 +0200 Thread-Index: AceWAXG46nPAHxecTnK3AI4IMKuZtw== Original-Received: from jekyll.bln.de.ingenico.com ([10.12.5.21]) by desnprexc.usr.ingenico.loc with Microsoft SMTPSVC(6.0.3790.211); Mon, 14 May 2007 10:25:34 +0200 Original-Received: from elberon.bln.de.ingenico.com (elberon.bln.de.ingenico.com [10.12.5.29]) by jekyll.bln.de.ingenico.com (Postfix) with ESMTP id 8147133BD; Mon, 14 May 2007 10:25:32 +0200 (CEST) Original-Received: (from steffen@localhost) by elberon.bln.de.ingenico.com (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) id l4E8PNi12970; Mon, 14 May 2007 10:25:23 +0200 Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Editor: Vim http://www.vim.org/ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Content-class: urn:content-classes:message Importance: normal Priority: normal X-OriginalArrivalTime: 14 May 2007 08:25:34.0927 (UTC) FILETIME=[71A745F0:01C79601] X-detected-kernel: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Greylist: delayed 1308 seconds by postgrey-1.27 at monty-python; Mon, 14 May 2007 04:47:29 EDT X-Mailman-Approved-At: Mon, 14 May 2007 14:21:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15711 Archived-At: Hi, I think I found a bug in etags (GNU Emacs 21.4.20), at least on cygwin happening in a special combination (see below). Finally I found a small file to reproduce it. It may happen that a "blank space identifier" is written instead of the element name. It seems to happen for the last element of an enum, if additionally a multi-line comment is given behind and if there is no whitespace between element identifier and comment block (it seems, all of those conditions must be meet to trigger the problem). Here an example (etagsbug.h): ------------------------------------------------------------------->8=3D=3D= =3D=3D=3D=3D=3D typedef enum { ELEM_1, /**< Comment Element 1 Second comment line. */ ELEM_2, /**< Comment Element 2 Second comment line. */ ELEM_I /**< Comment Element i Second comment line. */ } Works_t; typedef enum { ELEM_1, /**< Comment Element 1 Second comment line. */ ELEM_2, /**< Comment Element 2 Second comment line. */ ELEM_I/**< Comment Element i Second comment line. */ } Fails_t; =3D=3D=3D=3D=3D=3D=3D8<--------------------------------------------------= ----------------- I would expect the "same" for Works_t and Fails_t, because the declarations differ in comments/whitespace only, however, ELEM_I of Fails_t does not go into the created TAGS file. The resulting TAGS file is something like ------------------------------------------------------------------->8=3D=3D= =3D=3D=3D=3D=3D ^L etagsbug.h,154 ELEM_1,^?3,15 ELEM_2,^?5,89 ELEM_I ^?7,163 } Works_t;^?Works_t^A9,237 ELEM_1,^?13,264 ELEM_2,^?15,338 ^?18,444 } Fails_t;^?Fails_t^A19,482 =3D=3D=3D=3D=3D=3D=3D8<--------------------------------------------------= ----------------- (^L, ^? and ^A are one-character control chars in the file of course) In line 9, there should be " ELEM_I ^?18,444". With vim 7.0 (1-122) this leads to a parse error (I don't know for Emacs, but at least the identifier will be missing). I hope this little description helps a bit. well, thanks for reading this! :) Best greetings from Germany! :) oki, Steffen =20 About Ingenico Throughout the world businesses rely on Ingenico for = secure and expedient electronic transaction acceptance. Ingenico = products leverage proven technology, established standards and = unparalleled ergonomics to provide optimal reliability, versatility and = usability. This comprehensive range of products is complemented by a = global array of services and partnerships, enabling businesses in a = number of vertical sectors to accept transactions anywhere their = business takes them. www.ingenico.com This message may contain confidential and/or privileged = information. If you are not the addressee or authorized to receive this = for the addressee, you must not use, copy, disclose or take any action = based on this message or any information herein. If you have received = this message in error, please advise the sender immediately by reply = e-mail and delete this message. Thank you for your cooperation. =20 About Ingenico Throughout the world businesses rely on Ingenico for = secure and expedient electronic transaction acceptance. Ingenico = products leverage proven technology, established standards and = unparalleled ergonomics to provide optimal reliability, versatility and = usability. This comprehensive range of products is complemented by a = global array of services and partnerships, enabling businesses in a = number of vertical sectors to accept transactions anywhere their = business takes them. www.ingenico.com This message may contain confidential and/or privileged = information. If you are not the addressee or authorized to receive this = for the addressee, you must not use, copy, disclose or take any action = based on this message or any information herein. If you have received = this message in error, please advise the sender immediately by reply = e-mail and delete this message. Thank you for your cooperation. =20 About Ingenico Throughout the world businesses rely on Ingenico for = secure and expedient electronic transaction acceptance. Ingenico = products leverage proven technology, established standards and = unparalleled ergonomics to provide optimal reliability, versatility and = usability. This comprehensive range of products is complemented by a = global array of services and partnerships, enabling businesses in a = number of vertical sectors to accept transactions anywhere their = business takes them. www.ingenico.com This message may contain confidential and/or privileged = information. If you are not the addressee or authorized to receive this = for the addressee, you must not use, copy, disclose or take any action = based on this message or any information herein. If you have received = this message in error, please advise the sender immediately by reply = e-mail and delete this message. Thank you for your cooperation.