From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: jka-compr.el doesn't recognise gzipped files from their magic bytes Date: Mon, 17 Sep 2007 22:29:44 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1190061005 23367 80.91.229.12 (17 Sep 2007 20:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 20:30:05 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Chris Moore" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 22:30:00 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXNED-0001RZ-O8 for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 22:29:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXNEC-0007Yl-Fv for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 16:29:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXNE9-0007YV-KD for emacs-devel@gnu.org; Mon, 17 Sep 2007 16:29:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXNE7-0007YH-Vx for emacs-devel@gnu.org; Mon, 17 Sep 2007 16:29:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXNE7-0007YE-Ty for emacs-devel@gnu.org; Mon, 17 Sep 2007 16:29:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXNE7-0004jh-O9 for emacs-devel@gnu.org; Mon, 17 Sep 2007 16:29:51 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXNDb-0004dR-MP for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 16:29:19 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IXNE3-0004jR-V5 for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 16:29:51 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXNE3-0004jD-KA for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 16:29:47 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-121-123.inter.net.il [84.229.121.123]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id IXI20378 (AUTH halo1); Mon, 17 Sep 2007 22:29:36 +0200 (IST) In-reply-to: (christopher.ian.moore@gmail.com) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79127 gmane.emacs.pretest.bugs:19909 Archived-At: > Date: Mon, 17 Sep 2007 21:28:24 +0200 > From: "Chris Moore" > Cc: > > So shouldn't jka-compr look for the magic strings, and identify > gzipped files that way? It would be a performance hit: Emacs will need to open a file and read its first bytes just to know what to do with it. Then it will need to close the file and reopen it again (or else jump through the hoops to keep the first several bytes around for the second attempt). I say, as long as we need to add a few more extensions, let's do that and be done.