From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Claesson Newsgroups: gmane.emacs.bugs Subject: bug#23164: 25.1.50; xref-find-definitions with local tags-file-name fails Date: Mon, 04 Apr 2016 10:53:41 +0200 Message-ID: <87a8l9oiui.fsf@bredband.net> References: <87egar3czt.fsf@bredband.net> <87a497cc-15b1-504b-fd4a-8fb3e484e507@yandex.ru> <87zita16ow.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459760124 11982 80.91.229.3 (4 Apr 2016 08:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2016 08:55:24 +0000 (UTC) Cc: Dmitry Gutov , 23164@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 04 10:55:11 2016 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 1an0Hv-0004Pv-3G for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Apr 2016 10:55:11 +0200 Original-Received: from localhost ([::1]:57349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an0Hu-0003eU-KL for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Apr 2016 04:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an0Hp-0003aH-OP for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 04:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an0Hm-0000YI-J8 for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 04:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an0Hm-0000YC-FH for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 04:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1an0Hm-0001Ab-86 for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 04:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan Claesson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Apr 2016 08:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23164-submit@debbugs.gnu.org id=B23164.14597600974483 (code B ref 23164); Mon, 04 Apr 2016 08:55:02 +0000 Original-Received: (at 23164) by debbugs.gnu.org; 4 Apr 2016 08:54:57 +0000 Original-Received: from localhost ([127.0.0.1]:50587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an0Hg-0001AF-SF for submit@debbugs.gnu.org; Mon, 04 Apr 2016 04:54:57 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:57040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an0Hf-0001A0-Qq for 23164@debbugs.gnu.org; Mon, 04 Apr 2016 04:54:56 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id A787FCC36 for <23164@debbugs.gnu.org>; Mon, 4 Apr 2016 10:54:12 +0200 (CEST) X-SENDER-IP: [213.114.153.250] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CxBgAGKwJX//qZctVdHAGDGoFQgnGoQZADgXKGDQKBKTsSAQEBAQEBAWUnhEIBAQMBIzMjBQsIAxoCBSECAg8BBBkMJBOIEgMKDAGqe4wMIYUDAQEBAQYCAR0ZY4UkhEqEPYMCglYBBI1NijSdF48aJwswg2k6MIgmAQEB X-IPAS-Result: A2CxBgAGKwJX//qZctVdHAGDGoFQgnGoQZADgXKGDQKBKTsSAQEBAQEBAWUnhEIBAQMBIzMjBQsIAxoCBSECAg8BBBkMJBOIEgMKDAGqe4wMIYUDAQEBAQYCAR0ZY4UkhEqEPYMCglYBBI1NijSdF48aJwswg2k6MIgmAQEB X-IronPort-AV: E=Sophos;i="5.24,439,1454972400"; d="scan'208";a="676642276" Original-Received: from c-fa9972d5.04-99-73746f3.cust.bredbandsbolaget.se (HELO goblin) ([213.114.153.250]) by ipb1.telenor.se with ESMTP; 04 Apr 2016 10:53:54 +0200 In-Reply-To: <87zita16ow.fsf@wanadoo.es> ("=?UTF-8?Q?=C3=93scar?= Fuentes"'s message of "Mon, 04 Apr 2016 03:52:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:116011 Archived-At: I can also reproduce it on emacs-25 (commit f501116). With valid TAGS file or /dev/zero. I get the same backtrace. Regards, /Johan =C3=93scar Fuentes writes: > Dmitry Gutov writes: > >> Thanks for the report, but that doesn't seem to be the case here. At >> least if I replace "/dev/zero" with "~/vc/emacs/src/TAGS", the >> scenario doesn't lead to an error (I just get "not found"), and if I >> also use e.g. "CALLN" instead of "foo", the jump to the destination >> occurs as expected. > > I can reproduce it here with an existing TAGS file, on emacs -Q. > > GNU Emacs 25.0.92.3 (x86_64-unknown-linux-gnu, X toolkit) of 2016-04-03 > > at commit fc3cd53900eb5e80b91b6d2615b3800fd2f59c16 > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > expand-file-name(nil) > tags-expand-table-name(nil) > visit-tags-table-buffer(t) > etags--xref-find-definitions("foo") > #[514 "\300!\207" [etags--xref-find-definitions] 4 "\n\n(fn BACKEND SYM= BOL)"](etags "foo") > apply(#[514 "\300!\207" [etags--xref-find-definitions] 4 "\n\n(fn BACKE= ND SYMBOL)"] etags "foo") > xref-backend-definitions(etags "foo") > xref--find-xrefs("foo" definitions "foo" nil) > xref--find-definitions("foo" nil) > xref-find-definitions("foo") > eval((xref-find-definitions "foo") nil) > elisp--eval-last-sexp(nil) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > call-interactively(eval-last-sexp nil nil) > command-execute(eval-last-sexp)