From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28403: 25.2; find-tag works, but xref-find-definitions Date: Mon, 11 Sep 2017 19:23:25 +0300 Message-ID: <83lgllrypu.fsf@gnu.org> References: <201709110405.v8B45wO3020652@psr.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505147082 29642 195.159.176.226 (11 Sep 2017 16:24:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2017 16:24:42 +0000 (UTC) Cc: 28403@debbugs.gnu.org, dgutov@yandex.ru To: Winston Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 11 18:24:34 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 ) id 1drRVI-0006Ee-B8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 18:24:08 +0200 Original-Received: from localhost ([::1]:58827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drRVP-0005kG-Is for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 12:24:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drRVG-0005hZ-3E for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 12:24:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drRVC-0005Oz-1h for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 12:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drRVB-0005Ok-TY for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 12:24:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drRVB-0007fF-LZ for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 12:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2017 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28403-submit@debbugs.gnu.org id=B28403.150514701929433 (code B ref 28403); Mon, 11 Sep 2017 16:24:01 +0000 Original-Received: (at 28403) by debbugs.gnu.org; 11 Sep 2017 16:23:39 +0000 Original-Received: from localhost ([127.0.0.1]:33804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drRUo-0007ee-7F for submit@debbugs.gnu.org; Mon, 11 Sep 2017 12:23:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drRUn-0007eS-9e for 28403@debbugs.gnu.org; Mon, 11 Sep 2017 12:23:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drRUe-0005Ac-6N for 28403@debbugs.gnu.org; Mon, 11 Sep 2017 12:23:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drRUe-0005AY-3C; Mon, 11 Sep 2017 12:23:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4491 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1drRUd-0004Mh-Dx; Mon, 11 Sep 2017 12:23:27 -0400 In-reply-to: <201709110405.v8B45wO3020652@psr.com> (message from Winston on Mon, 11 Sep 2017 00:05 EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136792 Archived-At: > Date: Mon, 11 Sep 2017 00:05 EDT > From: Winston > Cc: dgutov@yandex.ru, 28403@debbugs.gnu.org > > Eli suggested: > >>> etags --regex="/[ \t]*\([^ \t]+\)[ \t]+_ARGS/\1/" ... > > and in reply to my changes said: > > It worked with your example. > > Yes. The difference is a small one: "_ARGS[0-9]" only matches function > definition lines, while using only "_ARGS" will also match declarations. That's not a problem in practice, because your prototypes are laid out differently: they have more than one symbol between the line beginning and _ARGS. But never mind. > >> [Too bad etags doesn't have a way of doing "s/[ \t]+_ARGS[0-9]*//" on > >> the lines it normally finds...] > > > Why do you need that? > > The idea was that instead of cluttering up the TAGS file with two > lines for every tag, such as > > foo _ARGS2^?foo^A50,100 > foo _ARGS2(^?50,100 > > as a result of using --regex, a post edit that allowed one to do > "s/[ \t]+_ARGS[0-9]*//" could simply remove the _ARGS2 part and reduce > the default etags line to: > > foo(^?50,100 > > thus (I'm guessing) clarifying things a different way. You shouldn't worry about that (and shouldn't look at TAGS anyway). There will be extra entries there, but they should never get in your way, as long as you use xref in its default "accurate" mode.