From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#21934: 24.5; find-tag: reading TAGS file incorrectly Date: Sun, 22 Nov 2015 18:54:40 +0200 Message-ID: <5651F350.6080203@yandex.ru> References: <87ziyd20cb.fsf@winky.hogwarts> <564AA697.9000203@yandex.ru> <83egfj4i2b.fsf@gnu.org> <56511795.2050207@yandex.ru> <83si3y2et4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448211340 17096 80.91.229.3 (22 Nov 2015 16:55:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 16:55:40 +0000 (UTC) Cc: andreas.matthias@gmail.com, 21934@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 22 17:55:28 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 1a0Xuw-0000UZ-O3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 17:55:10 +0100 Original-Received: from localhost ([::1]:56675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0Xuw-0004IQ-F4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 11:55:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0Xus-0004F6-3q for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 11:55:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0Xuo-0007Ee-UA for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 11:55:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0Xuo-0007Ea-Qe for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 11:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0Xuo-0004PO-HB for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 11:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2015 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21934 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21934-submit@debbugs.gnu.org id=B21934.144821128516915 (code B ref 21934); Sun, 22 Nov 2015 16:55:02 +0000 Original-Received: (at 21934) by debbugs.gnu.org; 22 Nov 2015 16:54:45 +0000 Original-Received: from localhost ([127.0.0.1]:48403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0XuX-0004Ol-4G for submit@debbugs.gnu.org; Sun, 22 Nov 2015 11:54:45 -0500 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:38829) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0XuW-0004Oe-4i for 21934@debbugs.gnu.org; Sun, 22 Nov 2015 11:54:44 -0500 Original-Received: by wmec201 with SMTP id c201so77673524wme.1 for <21934@debbugs.gnu.org>; Sun, 22 Nov 2015 08:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=BImvxwnsYuZsadh6t7JayLvNKgI5LcPp3JxhWulAFf8=; b=HwBic70blDgS1xADAo6+T9zguFBKkyu7FcpU3tThuhs3fIX2l/D5dyPyvy2JzZDmJd 2vyUyHnRi46rgOzoWvzAzQjuhPjiO1qyudt3GotXxNZpHvgJeGrTv8XCpUe9dVEFnfhZ UtrXkgl/L1PS54iRNhnqFGMs0xCr12Q8su4/a8v1CMyrArip1msutH2Q4SyBbjWWQVBS QUS+PYRHYN1lK6MBG8fGBUCtF4ytyqDPRna/ubHHnvk0e5zvHFVW4koT9/Wobr9CqPDY SCYdyglIs4bySA462xmSAdw0QXLZGK0/EKiFbXJ0kTUzXD5WpDrEGt0nCcRC1UW2EJMh Wubg== X-Received: by 10.28.175.144 with SMTP id y138mr11437863wme.47.1448211283599; Sun, 22 Nov 2015 08:54:43 -0800 (PST) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id i84sm9305613wmc.20.2015.11.22.08.54.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 Nov 2015 08:54:42 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: <83si3y2et4.fsf@gnu.org> 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: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109075 Archived-At: On 11/22/2015 06:12 PM, Eli Zaretskii wrote: > Completion is not an integral part of find-tag. It's not an integral part of xref-find-definitions either. > As I said, completion in M-. in Emacs 25 works worse than in find-tag > in this case: it doesn't even succeed to complete "Rec TAB" into > "Rectangle". I don't know why. I didn't see any difference between them. Anyway, it should be fixed now. >> Is it really any different? M-x find-tag RET TAB doesn't show anything >> beginning with "Rectangle" either. I only get "getPos" as a completion >> either way. > > It's different if you type "Rec TAB". If I revert 51fd4a01395885077909c60b17ae3d7d42b8bb0a and reopen the TAGS file, the only completion I get is "getPos", either way. It *is* different if you type "Rec RET", however, because in the end "Rec" gets a match via `tag-any-match-p', which etags--xref-find-definitions doesn't use. But the user can add it to etags-xref-find-definitions-tag-order, if they want. > My main point is that it's easy to solve the completion case, but that > hardly help in using TAGS with Lua and the new xref commands. > Something else is missing. I believe I've addressed that. And if I understand Andreas right, etags should output two tags for each such definition. Just like we do for C++.