From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#2807: Subject: 23.0.90; etags can't access .el.gz files Date: Tue, 13 Sep 2011 13:51:01 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1315914771 24855 80.91.229.12 (13 Sep 2011 11:52:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2011 11:52:51 +0000 (UTC) Cc: MON KEY , 2807@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 13 13:52:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3RXh-0004Bn-Uo for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 13:52:46 +0200 Original-Received: from localhost ([::1]:55479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3RXh-0002T0-EA for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 07:52:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3RXb-0002Se-8S for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 07:52:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3RXX-00059X-9i for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 07:52:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3RXX-00059T-85 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 07:52:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R3Rbp-0007jf-Ho; Tue, 13 Sep 2011 07:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2011 11:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 2807-submit@debbugs.gnu.org id=B2807.131591496429670 (code B ref 2807); Tue, 13 Sep 2011 11:57:01 +0000 Original-Received: (at 2807) by debbugs.gnu.org; 13 Sep 2011 11:56:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3Rat-0007iU-St for submit@debbugs.gnu.org; Tue, 13 Sep 2011 07:56:04 -0400 Original-Received: from blade3.isti.cnr.it ([194.119.192.19]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3Rar-0007i4-F8 for 2807@debbugs.gnu.org; Tue, 13 Sep 2011 07:56:02 -0400 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by mx.isti.cnr.it (PMDF V6.5-x5 #31826) with ESMTPSA id <01O60955UQCUXJFIXO@mx.isti.cnr.it> for 2807@debbugs.gnu.org; Tue, 13 Sep 2011 13:51:01 +0200 (MEST) Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.76) (envelope-from ) id 1R3RW1-000613-1i; Tue, 13 Sep 2011 13:51:01 +0200 In-reply-to: X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Sep 2011 07:57:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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:51093 Archived-At: >MON KEY writes: > >> in dir /usr/share/emacs/23.0.90/lisp >> M-x shell: >> bash-3.1$ etags ./*.el.gz >> >> when true: >> (equal tags-file-name "/usr/share/emacs/23.0.90/lisp/TAGS") >> >> M-x tags-search >> tags-search >> >> I get this error: >> `next-file: Opening input file: no such file or directory, >> /usr/share/emacs/23.0.90/lisp/abbrev.el' > >I can confirm that this bug is still present in Emacs 24. > >The problem is simply that etags puts the non-gz file name in the TAGS >file. Like this: > >font-core.el,502 > >Which means that Emacs isn't able to find the font-core.el.gz file. Etags manages compressed files so that the generated TAGS file contains the uncompressed file name, independently of whether the file on disk is compressed or not. The rationale for this behaviour is that the TAGS file does not contain info about the compression status of a file. This makes sense in the case that when you use an editor you either have an uncompressed file on disk or your editor is capable of finding the compressed version given the uncompressed name. I seem to remember that in past times Emacs was able to do that when jka-compr was loaded, but I may be wrong. I think that the solution should be that etags.el cares about looking for possible compressed versions of file names contained in TAGS file. By the way, the xz compressor should be added to the list of known compressors in etags.c, and the doc strings, man page and info updated accordingly.