From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#44494: bug#2807: Subject: 23.0.90; etags can't access .el.gz files Date: Thu, 12 Oct 2023 09:46:52 -0300 Message-ID: <28afd2a3-1adc-42cf-ac2f-9bded2d0c22c@gmail.com> References: <49c2c28b-291c-4436-8443-77bf6949751c@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------0ooy0bwg4tzj3oZTBN3MYuzm" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10205"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: pot@gnu.org, MON KEY , prouleau001@gmail.com, Stefan Monnier , dgutov@yandex.ru, Lars Ingebrigtsen , Eli Zaretskii To: 2807@debbugs.gnu.org, 44494@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 12 14:48:51 2023 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 1qqv7T-0002WH-5j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Oct 2023 14:48:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqv6M-0001Eq-5Q; Thu, 12 Oct 2023 08:47:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqv6K-0001Dk-GV for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 08:47:40 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqv6K-0000vC-80 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 08:47:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqv6g-0000wS-Jv for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 08:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2023 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44494 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 44494-submit@debbugs.gnu.org id=B44494.16971148733567 (code B ref 44494); Thu, 12 Oct 2023 12:48:02 +0000 Original-Received: (at 44494) by debbugs.gnu.org; 12 Oct 2023 12:47:53 +0000 Original-Received: from localhost ([127.0.0.1]:41327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqv6I-0000v6-4y for submit@debbugs.gnu.org; Thu, 12 Oct 2023 08:47:52 -0400 Original-Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:49286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqv65-0000tm-A0; Thu, 12 Oct 2023 08:47:33 -0400 Original-Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-693375d2028so748712b3a.2; Thu, 12 Oct 2023 05:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697114816; x=1697719616; darn=debbugs.gnu.org; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=OBQqJLievWhZVZE3azu4Y/TOn67a4xmiUlAxN9E2+mw=; b=bvNPhxPf6KS8fzV4aLUQRBq7TZElvZy+7qnWzEV70uLWAmodRaL7tL5mb7Ryn5Rrfl koa/3V1XGQ3EFXWCwqiVdmpymPIc2L/R2qTsfb4O/AjNysxg/5OBlCa+QgehEImaRYkH s0DJc6U0K4pvQjEj0W8CV6bq9X3VTL1yXGSD6J3OFXoX1c5voYwne8JD919DaYPfOKAA 3DSHb9Fe9EAApYe+zz9JDWVYx5+NLWzCZ5wG3W26ahKE79WBx9Duq4xK5S0Um4OIgCD7 57EBlIrRo82HrAvla1t7uW9S6Vjl3bR+o4w5SAcQj3tZG0j3j8cOlGmwwYGSa288en80 0VLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697114816; x=1697719616; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=OBQqJLievWhZVZE3azu4Y/TOn67a4xmiUlAxN9E2+mw=; b=fj1HA5icS4lYpLReyonYzQYG3MukSADvd+kHfMrKXiIPkwFvCFKwAIu0//b1lY9R97 /14dAD6tDyybG2FQw1VBc0ZfAbd2J+/AHWxpxS7KIRT/qVR2vev3UilQbdl0cayYsUPc hDsDRYOp318GnGL5i0V3YtC128o9jT99BuCqPPq2NFhvhgGZRfpMlBJy7n9szjN38SQf 1xBvfF0jazJ72bjfyLz5ezx3oxZxYCq7GrGJG9oor1V66+5k512fe324zvAXj7M8HAVA LN8hNEdT3oX17zY6nofG5LvRNVHif8a690xKb51YErWb076ITo8bR9cCOMhIbEevFz19 FIGA== X-Gm-Message-State: AOJu0YyMCP4HH/YhB/hKKaGDn3jPo3zlcX4t77og5beVOp1oKau/vIQg 4D3LrgKTboflxW/Jvjg4cw5TY+JS30nVVR3N X-Google-Smtp-Source: AGHT+IEP4kb/oK4vg5lSh6QUseZVpDzn2C4l0BLS5M6IFWgK7hN0y/QSlJNcz+WsanXXrQm/54AvDg== X-Received: by 2002:a05:6a20:2590:b0:151:577:32d1 with SMTP id k16-20020a056a20259000b00151057732d1mr28777733pzd.22.1697114816367; Thu, 12 Oct 2023 05:46:56 -0700 (PDT) Original-Received: from [192.168.0.100] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id 28-20020a17090a001c00b0027d0af2e9c3sm1896056pja.40.2023.10.12.05.46.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 05:46:55 -0700 (PDT) Content-Language: en-US In-Reply-To: <49c2c28b-291c-4436-8443-77bf6949751c@gmail.com> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272296 Archived-At: This is a multi-part message in MIME format. --------------0ooy0bwg4tzj3oZTBN3MYuzm Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit tags 2807 patch quit I did some debugging, and while internally etags.el knows how to handle compressed files, it doesn't pass good enough information to external tools like fileloop (Bug#2807) and xref (Bug#44494). I attach a patch to fix both bugs, Bug#2807 and Bug#44494. It reuses tags-compression-info-list to pass the correct filename to the tools mentioned. --------------0ooy0bwg4tzj3oZTBN3MYuzm Content-Type: text/x-patch; charset=UTF-8; name="0001-Fix-searching-for-tags-in-compressed-files.patch" Content-Disposition: attachment; filename="0001-Fix-searching-for-tags-in-compressed-files.patch" Content-Transfer-Encoding: base64 RnJvbSA4YjdjYTYzNDc1ZjRiZmZlOThhOTYyZmY4YzFmODk5ZmIxNTgxYWE4IE1vbiBT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FwY2FyICMnZXRhZ3MtLWVuc3VyZS1maWxl IGZpbGVzKSkpKQogCiAobWFrZS1vYnNvbGV0ZS12YXJpYWJsZSAndGFncy1sb29wLW9wZXJh dGUgJ2ZpbGVsb29wLWluaXRpYWxpemUgIjI3LjEiKQogKGRlZnZhciB0YWdzLWxvb3Atb3Bl cmF0ZSBuaWwKQEAgLTIxMzcsNyArMjE1MCw3IEBAIGV0YWdzLS14cmVmLWZpbmQtZGVmaW5p dGlvbnMKICAgICAgICAgICAgICAgKGJlZ2lubmluZy1vZi1saW5lKQogICAgICAgICAgICAg ICAocGNhc2UtbGV0KiAoKHRhZy1pbmZvIChldGFncy1zbmFyZi10YWcpKQogICAgICAgICAg ICAgICAgICAgICAgICAgICAgKGAoLGhpbnQgLGxpbmUgLiBfKSB0YWctaW5mbykpCi0gICAg ICAgICAgICAgICAgKGxldCogKChmaWxlIChmaWxlLW9mLXRhZykpCisgICAgICAgICAgICAg ICAgKGxldCogKChmaWxlIChldGFncy0tZW5zdXJlLWZpbGUgKGZpbGUtb2YtdGFnKSkpCiAg ICAgICAgICAgICAgICAgICAgICAgIChtYXJrLWtleSAoY29ucyBmaWxlIGxpbmUpKSkKICAg ICAgICAgICAgICAgICAgICh1bmxlc3MgKGdldGhhc2ggbWFyay1rZXkgbWFya3MpCiAgICAg ICAgICAgICAgICAgICAgIChsZXQgKChsb2MgKHhyZWYtbWFrZS1ldGFncy1sb2NhdGlvbgot LSAKMi4zNC4xCgo= --------------0ooy0bwg4tzj3oZTBN3MYuzm--