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#19466: 25.0.50; xref-find-def doesn't find C functions Date: Tue, 30 Dec 2014 20:34:03 +0200 Message-ID: <831tnhasx0.fsf@gnu.org> References: <8361cucl3u.fsf@gnu.org> <54A230CD.3040309@yandex.ru> <83vbktb1ct.fsf@gnu.org> <54A2EE15.3020406@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419964526 28915 80.91.229.3 (30 Dec 2014 18:35:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2014 18:35:26 +0000 (UTC) Cc: 19466@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 30 19:35:19 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 1Y61dV-0006dr-F6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2014 19:35:17 +0100 Original-Received: from localhost ([::1]:37913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y61dU-00057l-Ri for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2014 13:35:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y61dM-00055a-9B for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 13:35:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y61dG-00006Y-P0 for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 13:35:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y61dG-00006J-KY for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 13:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y61dG-0005Xd-B7 for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 13:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Dec 2014 18:35:02 +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.141996445821243 (code B ref 19466); Tue, 30 Dec 2014 18:35:02 +0000 Original-Received: (at 19466) by debbugs.gnu.org; 30 Dec 2014 18:34:18 +0000 Original-Received: from localhost ([127.0.0.1]:33111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y61cX-0005WZ-LE for submit@debbugs.gnu.org; Tue, 30 Dec 2014 13:34:18 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42320) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y61cU-0005WQ-Kz for 19466@debbugs.gnu.org; Tue, 30 Dec 2014 13:34:15 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NHE00A00RJD1900@a-mtaout22.012.net.il> for 19466@debbugs.gnu.org; Tue, 30 Dec 2014 20:34:13 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHE0099DRL0V730@a-mtaout22.012.net.il>; Tue, 30 Dec 2014 20:34:13 +0200 (IST) In-reply-to: <54A2EE15.3020406@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:97869 Archived-At: > Date: Tue, 30 Dec 2014 20:25:25 +0200 > From: Dmitry Gutov > CC: 19466@debbugs.gnu.org > > On 12/30/2014 08:05 PM, Stefan Monnier wrote: > >> Isn't it possible to _prefer_ the symbols that are consistent with the > >> major mode, but not entirely discard the other possible candidates? > > > > Indeed there should be a way to use the tags.el backend (or other > > similar whole-project systems like GNU global, ...) instead of the > > major mode's backend. > > In general, a minor mode would do that (set project-specific > xref-find-function and friends, etc), probably using a system like > projectile to determine the current project kind. > > We could do something specific for Emacs sources, but if using lisp/TAGS > is preferred over find-func by the same developers who work on C > sources, maybe emacs-lisp-mode shouldn't make any changes in xref-* > variables for them. An boolean option would be the simplest solution. I probably don't understand exactly what you are suggesting, but can we look at this from another angle: how can xref support looking up symbols for projects that use more than one major mode? E.g., could the back-end be a list of functions, rather than just one?