From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: etags failing with structure members
Date: Fri, 10 Mar 2017 11:21:08 +0200
Message-ID: <831su5fpx7.fsf@gnu.org>
References: <58C25BCF.4010704@gmx.at>
Reply-To: Eli Zaretskii <eliz@gnu.org>
NNTP-Posting-Host: blaine.gmane.org
X-Trace: blaine.gmane.org 1489137746 32436 195.159.176.226 (10 Mar 2017 09:22:26 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 10 Mar 2017 09:22:26 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: martin rudalics <rudalics@gmx.at>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 10 10:22:22 2017
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cmGkc-0007fE-Jw
	for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2017 10:22:18 +0100
Original-Received: from localhost ([::1]:38124 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cmGki-00031i-Lk
	for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2017 04:22:24 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37845)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eliz@gnu.org>) id 1cmGjt-0002zy-Fb
	for emacs-devel@gnu.org; Fri, 10 Mar 2017 04:21:34 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eliz@gnu.org>) id 1cmGjp-0002hW-8O
	for emacs-devel@gnu.org; Fri, 10 Mar 2017 04:21:33 -0500
Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33336)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@gnu.org>)
	id 1cmGjp-0002hJ-5Y; Fri, 10 Mar 2017 04:21:29 -0500
Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3830
	helo=home-c4e4a596f7)
	by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
	(Exim 4.82) (envelope-from <eliz@gnu.org>)
	id 1cmGjo-0005wc-DL; Fri, 10 Mar 2017 04:21:28 -0500
In-reply-to: <58C25BCF.4010704@gmx.at> (message from martin rudalics on Fri,
	10 Mar 2017 08:54:55 +0100)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:212872
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/212872>

> Date: Fri, 10 Mar 2017 08:54:55 +0100
> From: martin rudalics <rudalics@gmx.at>
> 
> An excerpt of the contents of my src/TAGS file after scanning the
> `frame' structure with current master:
> 
>    ...
>    bool_bf mouse_moved 297,10416
>    bool_bf pointer_invisible 300,10495
>    bool_bf frozen_window_starts 304,10651
>    ENUM_BF 309,10870
>    union output_data445,15670
>      struct tty_output *tty;tty447,15694
>      struct x_output *x;x448,15750
>      struct w32_output *w32;w32449,15803
>      struct ns_output *ns;ns450,15858
>      intptr_t nothing;451,15912
>    output_data;453,15938
>    ...
> 
> All taggable entries between
> 
>    ENUM_BF (output_method) output_method : 3;
> 
> #ifdef HAVE_WINDOW_SYSTEM
>    /* See FULLSCREEN_ enum on top.  */
>    ENUM_BF (fullscreen_type) want_fullscreen : 4;
> 
>    /* If not vertical_scroll_bar_none, we should actually
>       display the scroll bars of this type on this frame.  */
>    ENUM_BF (vertical_scroll_bar_type) vertical_scroll_bar_type : 2;
> 
>    /* Nonzero if we should actually display horizontal scroll bars on this frame.  */
>    bool_bf horizontal_scroll_bars : 1;
> #endif /* HAVE_WINDOW_SYSTEM */
>    ...
> 
> and
> 
>    ...
>    /* Canonical X unit.  Width of default font, in pixels.  */
>    int column_width;
> 
>    /* Canonical Y unit.  Height of a line, in pixels.  */
>    int line_height;
> 
>    /* The terminal device that this frame uses.  If this is NULL, then
>       the frame has been deleted.  */
>    struct terminal *terminal;
> 
> are missing.

This is a known problem: the tricky macro syntax used by some of the
header files run afoul of the etags parsing.  I tried once to find a
solution for that, I might look into this again.