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 10:00:33 +0200 Message-ID: <83wnyx7g0u.fsf@gnu.org> References: <1cdac9f7-8340-83eb-f619-583e028e6e23@yandex.ru> 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="26221"; 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 09:01:20 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 1kbJA0-0006jn-KT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 09:01:20 +0100 Original-Received: from localhost ([::1]:44608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbJ9z-0004s5-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 03:01:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbJ9j-0004f3-Sq for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 03:01:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbJ9i-0002af-Gp for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 03:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbJ9i-00045m-Ff for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 03:01: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 08:01: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.160473604215695 (code B ref 44494); Sat, 07 Nov 2020 08:01:02 +0000 Original-Received: (at 44494) by debbugs.gnu.org; 7 Nov 2020 08:00:42 +0000 Original-Received: from localhost ([127.0.0.1]:57878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbJ9O-000454-5l for submit@debbugs.gnu.org; Sat, 07 Nov 2020 03:00:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbJ9M-00044s-JI for 44494@debbugs.gnu.org; Sat, 07 Nov 2020 03:00:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55034) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbJ9G-0002FF-Rd; Sat, 07 Nov 2020 03:00:34 -0500 Original-Received: from [176.228.60.248] (port=4059 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbJ9E-0006MC-Rl; Sat, 07 Nov 2020 03:00:33 -0500 In-Reply-To: (message from Pierre Rouleau on Fri, 6 Nov 2020 22:31:02 -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:192814 Archived-At: > From: Pierre Rouleau > Date: Fri, 6 Nov 2020 22:31:02 -0500 > Cc: 44494@debbugs.gnu.org > > Do you see the same problem with 'M-x find-tag'? > > Short answer: yes > > Longer answer: you can try it on Emacs lib files. > > For example, I created a TAGS file that contains the following: > > define-globalized-minor-mode global-prettify-symbols-mode^?247,10355 > (define-derived-mode prog-mode ^?251,10485 > ^L > /usr/local/Cellar/emacs/26.3/share/emacs/26.3/lisp/progmodes/cc-bytecomp.el,1014 > (defvar cc-bytecomp-unbound-variables ^?76,2968 > (defvar cc-bytecomp-original-functions ^?77,3011 > (defvar cc-bytecomp-original-properties ^?78,3055 > (defvar cc-bytecomp-loaded-files ^?79,3100 > (defvar cc-bytecomp-environment-set ^?86,3302 > (defmacro cc-bytecomp-debug-msg ^?88,3344 > (defun cc-bytecomp-compiling-or-loading ^?93,3432 > (defsubst cc-bytecomp-is-compiling ^?134,4714 > (defsubst cc-bytecomp-is-loading ^?138,4857 > (defun cc-bytecomp-setup-environment ^?143,5065 > (defun cc-bytecomp-restore-environment ^?191,6703 > (defun cc-bytecomp-load ^?256,8749 > (defmacro cc-require ^?293,10222 > (defmacro cc-conditional-require ^?305,10617 > (defmacro cc-conditional-require-after-load ^?318,11068 > (defmacro cc-provide ^?333,11627 > (defmacro cc-load ^?340,11887 > (defmacro cc-require-when-compile ^?351,12266 > (defmacro cc-external-require ^?362,12703 > (defmacro cc-bytecomp-defvar ^?371,13055 > (defmacro cc-bytecomp-defun ^?392,13857 > (defmacro cc-bytecomp-put ^?419,14990 > (defmacro cc-bytecomp-boundp ^?437,15739 > (defmacro cc-bytecomp-fboundp ^?447,16140 > ^L > /usr/local/Cellar/emacs/26.3/share/emacs/26.3/lisp/progmodes/make-mode.el,6494 > (defgroup makefile ^?95,3661 > (defface makefile-space^?101,3839 > (defface makefile-targets^?107,4026 > (defface makefile-shell^?114,4302 > > Then with the file /usr/local/Cellar/emacs/26.3/share/emacs/26.3/lisp/progmodes/cc-cmds.el.gz in a buffer > and cc-bytecomp not loaded trying both > > M-x xref-find-definitions cc-require > > and > > M-x find-tag cc-require > > I get: > > Rerun etags: ‘^(defmacro cc-require ’ not found in > /usr/local/Cellar/emacs/26.3/share/emacs/26.3/lisp/progmodes/cc-bytecomp.el I cannot reproduce this: find-tag works in this situation, at least in the current emacs-27 branch and in stock Emacs 27.1. Which doesn't surprise me, since etags.el already has code that handles compressed files. Moreover, M-. (which uses xref) works as well. So I'm no longer sure I understand what is the problem you are seeing. If you see this in Emacs 26, please retry in Emacs 27, and let's take this from there. FTR, the steps I used for reproducing were slightly different: . "make TAGS" in the top-level directory of the Emacs source tree . gzip lisp/abbrevs.el . emacs -Q . C-x C-f lisp/simple.el . C-u M-. kill-all-abbrevs RET And for find-tag, replace the last 2 commands with . M-x visit-tags-table RET RET . M-x find-tag RET kill-all-abbrevs RET Both of these work and show abbrevs.el.gz at the correct line.