From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Reading out the Uncompressed Size of a compressed File Date: Fri, 09 Oct 2009 13:34:01 +0200 Message-ID: <83fx9sls2e.fsf@gnu.org> References: <71cf413b-3956-43b6-b4bb-fe81a94f69ea@k17g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255088199 32410 80.91.229.12 (9 Oct 2009 11:36:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Oct 2009 11:36:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 09 13:36:29 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MwDlq-00086D-Oi for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Oct 2009 13:36:27 +0200 Original-Received: from localhost ([127.0.0.1]:53906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwDlq-0000jS-6P for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Oct 2009 07:36:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwDlS-0000jF-R3 for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 07:36:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwDlS-0000j3-9C for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 07:36:02 -0400 Original-Received: from [199.232.76.173] (port=35142 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwDlS-0000j0-3v for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 07:36:02 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:60015 helo=mtaout3.012.net.il) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwDlR-0004hJ-4a for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 07:36:01 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KR800L00W4OL100@i_mtaout3.012.net.il> for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 13:36:00 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.84.229]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KR800ITHW7ZTM00@i_mtaout3.012.net.il> for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 13:36:00 +0200 (IST) In-reply-to: <71cf413b-3956-43b6-b4bb-fe81a94f69ea@k17g2000yqb.googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68786 Archived-At: > From: =?ISO-8859-1?Q?Nordl=F6w?= > Date: Fri, 9 Oct 2009 03:16:50 -0700 (PDT) > > Is there quick a way to determine the uncompressed size of a > compressed file? > > Does gzip have this in its meta-data somehow? > > I already know that we can figure this out by doing with-temp-buffer > insert-file-contents() and reading (point-max)-1 if we have auto- > compression-mode enabled. > > But is there a faster way? "gzip -l FILE" will show you the uncompressed size of FILE.