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#19466: 25.0.50; xref-find-def doesn't find C functions Date: Tue, 30 Dec 2014 06:57:49 +0200 Message-ID: <54A230CD.3040309@yandex.ru> References: <8361cucl3u.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 1419915497 23883 80.91.229.3 (30 Dec 2014 04:58:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2014 04:58:17 +0000 (UTC) To: Eli Zaretskii , 19466@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 30 05:58:10 2014 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 1Y5osk-0008Sr-12 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2014 05:58:10 +0100 Original-Received: from localhost ([::1]:35630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5osj-0005Kw-F8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 23:58:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5osf-0005Kp-RV for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 23:58:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5osc-0000bb-KK for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 23:58:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5osc-0000bX-HA for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 23:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y5osc-0006e0-1b for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 23:58: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: Tue, 30 Dec 2014 04:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19466-submit@debbugs.gnu.org id=B19466.141991547525526 (code B ref 19466); Tue, 30 Dec 2014 04:58:01 +0000 Original-Received: (at 19466) by debbugs.gnu.org; 30 Dec 2014 04:57:55 +0000 Original-Received: from localhost ([127.0.0.1]:60636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5osU-0006de-O5 for submit@debbugs.gnu.org; Mon, 29 Dec 2014 23:57:55 -0500 Original-Received: from mail-we0-f178.google.com ([74.125.82.178]:38245) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5osS-0006dU-3R for 19466@debbugs.gnu.org; Mon, 29 Dec 2014 23:57:52 -0500 Original-Received: by mail-we0-f178.google.com with SMTP id p10so472537wes.23 for <19466@debbugs.gnu.org>; Mon, 29 Dec 2014 20:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/AoRES7daqAGtrlt36O+iPXTGPVpdcePqSGlzkR7h9I=; b=ZQKesE1k7VLTDlRktmEGOksygby/ppFgJnbOelEV/qCkSrZvZ+bhiMogFleqb9PGIq d3HLjR+IAykmGkaNYX8fdd5NdNmWRkh1WjJV3SdRzialONIqtL1HqgfdHoaWpMXxijNm 3bQh5Y5BXerzc5H3v4osRe94w9EFozvQT7agEyiAw9rJHfK4XWfO2TwBkpUEl1Cr/1cs mkNMmkfKJPMHD2UHyPvtUxlzLSzIHjBUYgjN4k9aeJUp3xsb4sYHxXIHC0vQuMzPTX0k SF1YG69iHMpBxkB2b1glh2bDoz9Cx1QtQx5lRzNXz9NwTGmo+IdFv3CaVIU4Llbg1N4f z7aw== X-Received: by 10.194.234.40 with SMTP id ub8mr120360315wjc.100.1419915471395; Mon, 29 Dec 2014 20:57:51 -0800 (PST) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id r3sm41948143wic.10.2014.12.29.20.57.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Dec 2014 20:57:50 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <8361cucl3u.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: 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:97823 Archived-At: On 12/29/2014 09:27 PM, Eli Zaretskii wrote: > Run "make TAGS" in the top-level directory, then: > > emacs -Q > Click menu-bar->Edit->Go To->Set Tags File Name > Navigate to src/TAGS and select it in the file selection dialog > Click menu-bar->Edit->Go To->Find Definition > Type "display_line RET" at the prompt > => [No match] Are you doing that in e.g. emacs-lisp-mode buffer? Naturally, it wouldn't work, because that major mode defines its own identifier completion table and find-definition function. I understand what you're trying to do, but don't see a way to achieve that while keeping the uniform interface for the user in different major modes (which can use different navigation logic). > The above does work if I invoke the same sequence from a buffer > visiting xdisp.c (or any other file from src/), Or buffer in any major mode that doesn't define its own navigation function. > but that sounds like > an inconvenience. The old tags feature didn't require that. Suggestions welcome, but maybe you should just keep using `find-tag'. The generic navigation commands are more useful to have as the menu items, though. Alternatively, you could reset `xref-find-function' and `xref-identifier-completion-table-function' to their default values in `emacs-lisp-mode-hook'. That could be a decent choice if your TAGS file includes the lisp files as well.