From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.devel Subject: Re: bug#3269: 23.0.93; C-mode text highlighting Date: Wed, 20 May 2009 12:31:45 +0200 Message-ID: <87eiukm5f2.fsf@meyering.net> References: <878wl1h5fw.fsf@ancient.thomaschristensen.org> <20090514213924.GB2413@muc.de> <20090518150643.GA12920@muc.de> <20090518213030.GD12920@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242815544 23088 80.91.229.12 (20 May 2009 10:32:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 10:32:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 20 12:32:17 2009 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 1M6j5o-00057q-O5 for ged-emacs-devel@m.gmane.org; Wed, 20 May 2009 12:32:13 +0200 Original-Received: from localhost ([127.0.0.1]:50765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6j5n-0006fs-PG for ged-emacs-devel@m.gmane.org; Wed, 20 May 2009 06:32:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6j5g-0006dR-KG for emacs-devel@gnu.org; Wed, 20 May 2009 06:32:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6j5a-0006Yc-To for emacs-devel@gnu.org; Wed, 20 May 2009 06:32:03 -0400 Original-Received: from [199.232.76.173] (port=59757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6j5a-0006Y3-G3 for emacs-devel@gnu.org; Wed, 20 May 2009 06:31:58 -0400 Original-Received: from smtp2-g21.free.fr ([212.27.42.2]:60794) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6j5X-0001pi-HZ for emacs-devel@gnu.org; Wed, 20 May 2009 06:31:57 -0400 Original-Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id D5F874B012F for ; Wed, 20 May 2009 12:31:48 +0200 (CEST) Original-Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp2-g21.free.fr (Postfix) with ESMTP id 030B64B012C for ; Wed, 20 May 2009 12:31:46 +0200 (CEST) Original-Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id DA42E2B5FD; Wed, 20 May 2009 12:31:45 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Mon, 18 May 2009 22:24:02 -0400") Original-Lines: 55 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:110995 Archived-At: Hi, Following up to this message, http://thread.gmane.org/gmane.emacs.devel/110963 I've included the trivially-rebased patch below, with a fixed log entry. Also, have you considered offering XZ-compressed tarballs? The decrease in size is striking: 34M emacs-23.0.93.tar.bz2 26M emacs-23.0.93.tar.xz In addition, unpacking with xz takes about 1/3 the time, here: $ env time tar xf ../.new/emacs-23.0.93.tar.xz 2.55user 0.83system 0:03.40elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+309000outputs (0major+17044minor)pagefaults 0swaps $ rm -rf emacs-23.0.93 $ env time tar xf ../emacs-23.0.93.tar.bz2 5.36user 0.83system 0:09.64elapsed 64%CPU (0avgtext+0avgdata 0maxresident)k 67912inputs+309000outputs (0major+1448minor)pagefaults 0swaps I admit that when I first compressed with xz, the resulting size was 27MiB, but when I reordered files in the tarball (placing like suffixes together), xz was able to compress to one full MiB smaller. >From faa98d33239195f42c732f8886f1db378846553c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 18 May 2009 11:33:03 +0200 Subject: [PATCH] automatically handle .xz suffix (XZ-compressed files), too * jka-cmpr-hook.el (jka-compr-compression-info-list): Add xz. XZ is the successor to LZMA: --- lisp/jka-cmpr-hook.el | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el index 96e9513..fa2fd40 100644 --- a/lisp/jka-cmpr-hook.el +++ b/lisp/jka-cmpr-hook.el @@ -219,6 +219,10 @@ options through Custom does this automatically." "compressing" "gzip" ("-c" "-q") "uncompressing" "gzip" ("-c" "-q" "-d") t t "\037\213"] + ["\\.xz\\(~\\|\\.~[0-9]+~\\)?\\'" + "XZ compressing" "xz" ("-c" "-q") + "XZ uncompressing" "xz" ("-c" "-q" "-d") + t t "\3757zXZ\0"] ;; dzip is gzip with random access. Its compression program can't ;; read/write stdin/out, so .dz files can only be viewed without ;; saving, having their contents decompressed with gzip. -- 1.6.3.1.149.gbc70c