From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44494: etags.el xref-location-marker does not handle TAGS references to .el.gz files Date: Sat, 07 Nov 2020 16:37:38 +0200 Message-ID: <838sbd6xn1.fsf@gnu.org> References: <1cdac9f7-8340-83eb-f619-583e028e6e23@yandex.ru> <83wnyx7g0u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3189"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44494@debbugs.gnu.org, dgutov@yandex.ru To: Pierre Rouleau Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 07 15:38:08 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbPM0-0000jT-Qp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 15:38:08 +0100 Original-Received: from localhost ([::1]:60492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbPLz-0008Lf-QH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 09:38:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbPLu-0008LU-NX for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 09:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbPLu-000758-EH for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 09:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbPLu-0007S1-AZ for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 09:38: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: Sat, 07 Nov 2020 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44494 X-GNU-PR-Package: emacs Original-Received: via spool by 44494-submit@debbugs.gnu.org id=B44494.160475986528618 (code B ref 44494); Sat, 07 Nov 2020 14:38:02 +0000 Original-Received: (at 44494) by debbugs.gnu.org; 7 Nov 2020 14:37:45 +0000 Original-Received: from localhost ([127.0.0.1]:58163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbPLd-0007RW-4G for submit@debbugs.gnu.org; Sat, 07 Nov 2020 09:37:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbPLb-0007RI-7H for 44494@debbugs.gnu.org; Sat, 07 Nov 2020 09:37:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59450) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbPLV-0006ux-7F; Sat, 07 Nov 2020 09:37:37 -0500 Original-Received: from [176.228.60.248] (port=4917 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbPLU-0004Om-Jj; Sat, 07 Nov 2020 09:37:37 -0500 In-Reply-To: (message from Pierre Rouleau on Sat, 7 Nov 2020 09:15:12 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192835 Archived-At: > From: Pierre Rouleau > Date: Sat, 7 Nov 2020 09:15:12 -0500 > Cc: dgutov@yandex.ru, 44494@debbugs.gnu.org > > To recap you need to try searching for something that is not already > loaded and use the etags xref backend with a file that contains the definition > of what one is searching and that is located inside a compressed file. OK, I've now tried this with paren.el, which is not loaded in "emacs -Q". I can confirm that M-. fails to find functions in paren.el (I tried show-paren-function, FTR), even if I use xref-etags-mode, but "M-x find-tag" succeeds. So I think we should try to understand why find-tag does work in this case, and see how to make xref-find-definitions do the same. Could you perhaps do that? > . emacs -Q > . C-x C-f lisp/simple.el.gz > . M-x xref-etags-mode > . C-u M-x cc-require > emacs==> prompts Visit tags table (default TAGS): .... > me ====> I select the TAGS file where all definitions are stored and hit RET > - emacs 26.3 ==> Rerun etags: ‘^(defmacro cc-require ’ not found in > /usr/local/Cellar/emacs/26.3/share/emacs/26.3/lisp/progmod\ > es/cc-bytecomp.el > - emacs 27.1 ==> Rerun etags: ‘^(defmacro cc-require ’ not found in > /usr/local/Cellar/emacs/27.1/share/emacs/27.1/lisp/progmodes/cc-bytecomp.el Note that at this point, you have an empty cc-bytecomp.el buffer. Which I think gives a clue as to where the problem lies.