From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] emacs-25 f8208b6: Document the user-level features of the Xref package Date: Mon, 25 Jan 2016 22:52:42 +0200 Message-ID: <83zivt1iw5.fsf@gnu.org> References: <20160109191428.26341.44105@vcs.savannah.gnu.org> <5691C9D2.7080905@yandex.ru> <83egdpmo1j.fsf@gnu.org> <56929D6F.2050508@yandex.ru> <834melmfa4.fsf@gnu.org> <5692B1E0.8010100@yandex.ru> <831t9pma4e.fsf@gnu.org> <5693FDFA.2070607@yandex.ru> <83ziwbkj5l.fsf@gnu.org> <5694055E.6050201@yandex.ru> <83si1udcaz.fsf@gnu.org> <569D64AC.1060606@yandex.ru> <83powxbh6c.fsf@gnu.org> <569EB04F.800@yandex.ru> <8337tsc133.fsf@gnu.org> <56A05073.5090100@yandex.ru> <83powu96yo.fsf@gnu.org> <56A1277B.9080001@yandex.ru> <83a8ny92rg.fsf@gnu.org> <56A1357B.2020601@yandex.ru> <8360ym8zvk.fsf@gnu.org> <56A13B4C.6040101@yandex.ru> <831t9a8yik.fsf@gnu.org> <56A434E4.7030104@yandex.ru> <838u3f3si0.fsf@gnu.org> <56A687E2.7000300@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1453755150 27519 80.91.229.3 (25 Jan 2016 20:52:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2016 20:52:30 +0000 (UTC) Cc: emacs-devel@gnu.org, dgutov@yandex.ru To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 25 21:52:25 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aNo7d-0006m4-0Q for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 21:52:25 +0100 Original-Received: from localhost ([::1]:40776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNo7c-0003Dm-CP for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 15:52:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNo7Z-0003Dd-4g for emacs-devel@gnu.org; Mon, 25 Jan 2016 15:52:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNo7V-0007FL-V6 for emacs-devel@gnu.org; Mon, 25 Jan 2016 15:52:21 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNo7V-0007FH-Rq; Mon, 25 Jan 2016 15:52:17 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4912 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aNo7U-000178-Dw; Mon, 25 Jan 2016 15:52:17 -0500 In-reply-to: <56A687E2.7000300@cornell.edu> (message from Ken Brown on Mon, 25 Jan 2016 15:38:58 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198813 Archived-At: > Cc: emacs-devel@gnu.org > From: Ken Brown > Date: Mon, 25 Jan 2016 15:38:58 -0500 > > First, paragraph b of the Xref info node talks about etags, with a > reference to the subnode on creating tags tables. It would have helped > me if there had been a further sentence saying that a user has to give > the command M-x visit-tags-table before Xref will use etags as the > backend. That's not true, you don't need to invoke visit-tags-table manually. Xref does that automatically (it asks you for confirmation). Something isn't working correctly in your case. > Second, I suggest that Xref should offer to use etags as the backend > when a TAGS file exists in the current directory. It already does, at least in C mode. > I had the following experience in my first attempt to use Xref: > > After reading the Xref node and glancing at the "Creating Tags Tables" > node, I remembered that there was a 'tags' target in the top level > Makefile of the emacs tree, so I gave the command 'make tags' to create > the TAGS files. Then I visited a C file in the src directory and tried > 'M-.' on an identifier. The result was the error message 'Symbol’s > function definition is void: etags--xref-backend'. I didn't know what > to do with that message, so I went back to the Xref node to see if it > would tell me how to tell Xref to use etags as backend. It didn't, but > I finally tried M-x visit-tags-table, and it worked. Very strange. Do you have a TAGS file in the src directory? You should if you invoked "make TAGS" at top level. If I visit some C file in src/ and type M-. I'm asked to confirm to visit tags table in src, and then I'm presented with the definition of the identifier (or with an *xref* buffer if there are more than one candidate). So there's some factor at work in your case that somehow prevents this from working correctly. Did you try the same in a .el file? What happened?