From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20629: 25.0.50; Regression: TAGS broken, can't find anything in C++ files. Date: Wed, 27 May 2015 17:28:01 +0300 Message-ID: <831ti2yu1a.fsf@gnu.org> References: <555EC552.5010600@swipnet.se> <55606A8F.1020109@swipnet.se> <55606CC7.3010401@yandex.ru> <55606F70.10605@swipnet.se> <83twv31jzg.fsf@gnu.org> <83pp5r1hdx.fsf@gnu.org> <83mw0v1e5n.fsf@gnu.org> <83lhgczo16.fsf@gnu.org> <55639175.9090005@yandex.ru> <83fv6kysjf.fsf@gnu.org> <556447EF.3050103@yandex.ru> <83bnh7z8c5.fsf@gnu.org> <5564C2C7.5050909@yandex.ru> <837frvywfn.fsf@gnu.org> <55650812.60909@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432737398 1397 80.91.229.3 (27 May 2015 14:36:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 14:36:38 +0000 (UTC) Cc: 20629@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 27 16:36:23 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YxcRR-0003OD-IG for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 May 2015 16:36:21 +0200 Original-Received: from localhost ([::1]:54231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxcRQ-00056s-Gy for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 May 2015 10:36:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxcRI-000526-8q for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:36:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxcRA-0007ji-G5 for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:36:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxcRA-0007jJ-DJ for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:36:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YxcKM-0001K0-GG for bug-gnu-emacs@gnu.org; Wed, 27 May 2015 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 May 2015 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20629-submit@debbugs.gnu.org id=B20629.14327369055035 (code B ref 20629); Wed, 27 May 2015 14:29:02 +0000 Original-Received: (at 20629) by debbugs.gnu.org; 27 May 2015 14:28:25 +0000 Original-Received: from localhost ([127.0.0.1]:58480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxcJh-0001J6-Ee for submit@debbugs.gnu.org; Wed, 27 May 2015 10:28:25 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:51558) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxcJc-0001Ip-Cy for 20629@debbugs.gnu.org; Wed, 27 May 2015 10:28:20 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NP000E00IPWVP00@mtaout28.012.net.il> for 20629@debbugs.gnu.org; Wed, 27 May 2015 17:27:24 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NP00081VITN6080@mtaout28.012.net.il>; Wed, 27 May 2015 17:27:24 +0300 (IDT) In-reply-to: <55650812.60909@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103214 Archived-At: > Cc: 20629@debbugs.gnu.org > From: Dmitry Gutov > Date: Wed, 27 May 2015 02:56:02 +0300 > > I don't see how that could be possible: tag-implicit-name-match-p is > language-agnostic. You'd need to make it language-aware before it > could do such stuff for languages that need it. > > Well, by including ()=,; in that constant, it already makes certain assumptions that aren't necessarily true (for instance, `=' can be, and often is, a part of a method name in Ruby). Adding a colon would be another one of those. That's not the same situation: [()=,;] are used only if there's no explicit tag name; explicit tag names are used without any processing, and the language-specific parsing in etags.c is expected to extract the tag name according to the language-specific rules. The idea behind tag-implicit-name-match-p is an observation that in many practical cases [()=,;] delimit the tag name, and when it does, etags.c could refrain from putting an explicit tag name in TAGS. IOW, this is just an optimization, meant to keep TAGS smaller. By contrast, what you are suggesting (AFAIU) is process an explicit tag name, such as "foo::bar::baz", to deduce that it matches "baz". Or maybe I don't understand the suggestion, since you were talking about tag-implicit-name-match-p, which doesn't look at the explicit tag name at all, and the explicit tag name is the root cause here. > You should try the patch and see how it goes. I will, thanks.