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: Thu, 22 Jan 2015 20:02:16 +0200 Message-ID: <83a91avglz.fsf@gnu.org> References: <8361cucl3u.fsf@gnu.org> <54A230CD.3040309@yandex.ru> <83vbktb1ct.fsf@gnu.org> <54A2EE15.3020406@yandex.ru> <831tnhasx0.fsf@gnu.org> <54A6DAF6.5070605@yandex.ru> <831tna9tmr.fsf@gnu.org> <54A9C94F.8040701@yandex.ru> <83vbkl99vm.fsf@gnu.org> <54B8878A.4050506@yandex.ru> <54B8C22B.3080200@gmx.at> <54BC7A77.5020307@yandex.ru> <54BCC033.2010104@gmx.at> <83oapuy8ew.fsf@gnu.org> <54BDC34C.5070309@yandex.ru> <83wq4hwejl.fsf@gnu.org> <54BEBF63.9050709@yandex.ru> <8361c0w16n.fsf@gnu.org> <54C063E3.8020401@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1421949798 2985 80.91.229.3 (22 Jan 2015 18:03:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 18:03:18 +0000 (UTC) Cc: eller.helmut@gmail.com, 19466@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 19:03:12 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 1YEM64-0000zY-4y for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 19:03:12 +0100 Original-Received: from localhost ([::1]:55298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEM63-0005Og-Is for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 13:03:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEM5z-0005Ob-BA for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEM5u-0001mL-Fh for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:03:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEM5u-0001lr-Bs for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YEM5t-0005bm-S1 for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jan 2015 18:03: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.142194974621509 (code B ref 19466); Thu, 22 Jan 2015 18:03:01 +0000 Original-Received: (at 19466) by debbugs.gnu.org; 22 Jan 2015 18:02:26 +0000 Original-Received: from localhost ([127.0.0.1]:53200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEM5J-0005ar-Mt for submit@debbugs.gnu.org; Thu, 22 Jan 2015 13:02:26 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:42949) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEM5H-0005ab-Nb for 19466@debbugs.gnu.org; Thu, 22 Jan 2015 13:02:24 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NIL00D00AQ55000@mtaout24.012.net.il> for 19466@debbugs.gnu.org; Thu, 22 Jan 2015 19:54:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIL0041TB29F3A0@mtaout24.012.net.il>; Thu, 22 Jan 2015 19:54:10 +0200 (IST) In-reply-to: <54C063E3.8020401@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:98592 Archived-At: > Date: Thu, 22 Jan 2015 04:43:47 +0200 > From: Dmitry Gutov > CC: rudalics@gmx.at, 19466@debbugs.gnu.org, eller.helmut@gmail.com > > On 01/21/2015 06:25 PM, Eli Zaretskii wrote: > > > Can the package that uses xref modify that string? If so, we don't > > need a single-fits-all phrase. > > It can't, right now. But it would have to be modified by the used > command (find-definitions/references/apropos), not the package. > > > If we do need a single phrase, then how about "go to > > definition/reference"? > > I've settled on "follow reference" for now. Probably good enough, thanks. > AFAICS you've pretty much stopped formulating the requirements at "there > should be a way to use the tags.el backend instead of the major mode's > backend". Not really, I think that was Stefan's proposal. What I need is a way to find definitions of both C and Lisp symbols (functions, macros, struct's, etc.) irrespective of the current buffer's major mode. If xref can do that, it's fine with me. > > If you can show me the complete Lisp, I can try that and return > > feedback. > > That would be good, but unless you declare one of them good enough, > participation in the technical discussion will also be needed. > > >> Messages 32 and 41 include functional implementations you can try. The > >> patches that would go into Emacs won't be much different, we'd just have > >> to decide on code organization. > > > > The recipe in #32 is clearly incomplete. Not sure about 41. > > It's only incomplete because I expected you'd be able to turn on the > minor mode defined there yourself, in any Emacs Lisp buffers you like. > > Here's the "missing piece" for #32: > > (defun elisp-maybe-turn-on-xref-etags-mode () > (when (and buffer-file-name > (string-prefix-p source-directory buffer-file-name)) > (xref-etags-mode))) > > (add-hook 'emacs-lisp-mode-hook 'elisp-maybe-turn-on-xref-etags-mode) > > Which part of it was hard? > > > Once again, if you can show a complete Lisp to try, I will. > > To my knowledge, #41 was/is quite complete. I will try those when I have time, thanks.