From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roman Pletka Newsgroups: gmane.emacs.bugs Subject: etags: function not indexed after macro Date: Fri, 12 May 2006 10:53:44 +0200 Message-ID: <44644D18.3060604@zurich.ibm.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147460808 24262 80.91.229.2 (12 May 2006 19:06:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 May 2006 19:06:48 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 12 21:06:44 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fecy5-0000RE-92 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 May 2006 21:06:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fecy4-0008IP-TY for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 May 2006 15:06:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeTPD-0004kq-U4 for bug-gnu-emacs@gnu.org; Fri, 12 May 2006 04:53:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeTPB-0004jb-Vw for bug-gnu-emacs@gnu.org; Fri, 12 May 2006 04:53:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeTPB-0004jY-Qt for bug-gnu-emacs@gnu.org; Fri, 12 May 2006 04:53:49 -0400 Original-Received: from [195.212.29.137] (helo=mtagate4.uk.ibm.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FeTQt-0005Cd-0Y for bug-gnu-emacs@gnu.org; Fri, 12 May 2006 04:55:35 -0400 Original-Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate4.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k4C8rj2e180606 for ; Fri, 12 May 2006 08:53:45 GMT Original-Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k4C8se4X123182 for ; Fri, 12 May 2006 09:54:40 +0100 Original-Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11/8.13.3) with ESMTP id k4C8rjfS028632 for ; Fri, 12 May 2006 09:53:45 +0100 Original-Received: from sihl.zurich.ibm.com (sihl.zurich.ibm.com [9.4.16.232]) by d06av01.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id k4C8rj31028627 for ; Fri, 12 May 2006 09:53:45 +0100 Original-Received: from [9.4.69.147] (dhcp69-147.zurich.ibm.com [9.4.69.147]) by sihl.zurich.ibm.com (AIX4.3/8.9.3p2/8.9.3) with ESMTP id KAA35988 for ; Fri, 12 May 2006 10:53:44 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: en Original-To: bug-gnu-emacs@gnu.org X-Enigmail-Version: 0.93.0.0 X-Mailman-Approved-At: Fri, 12 May 2006 15:06:25 -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:15086 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I tried to index the following code with etags: #define DECLARE_TEST(name) \ static int test_##name; DECLARE_TEST(var) void my_func(int i) { test_var = i; } void my_func2(int j) { test_var = j; } It looks like etags does not create an entry for the my_func function because the closing semicolon is in the definition of the macro. I am using etags that comes with GNU Emacs 21.4 (Debian emacs21 21.4a-3). I tried the same code with cscope and there it works. Best regards, Roman Pletka -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEZE0Y9GOBmbEdi04RAvUyAKDJ27k3wdlPhN4/zHq9a+fP/KknzgCfYLC1 mSKquH6hzoWMf0LRXzvL/14= =Tizo -----END PGP SIGNATURE-----