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: [PATCH] automatically handle .xz suffix (XZ-compressed files), too Date: Mon, 18 May 2009 13:21:46 +0200 Message-ID: <87bppqu051.fsf@meyering.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242645734 29133 80.91.229.12 (18 May 2009 11:22:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 11:22:14 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 18 13:22:07 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 1M60v0-0006qj-S3 for ged-emacs-devel@m.gmane.org; Mon, 18 May 2009 13:22:07 +0200 Original-Received: from localhost ([127.0.0.1]:51459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M60v0-0005GC-5p for ged-emacs-devel@m.gmane.org; Mon, 18 May 2009 07:22:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M60ut-0005Di-8B for emacs-devel@gnu.org; Mon, 18 May 2009 07:21:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M60un-0005AJ-EV for emacs-devel@gnu.org; Mon, 18 May 2009 07:21:58 -0400 Original-Received: from [199.232.76.173] (port=39841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M60un-0005A2-9C for emacs-devel@gnu.org; Mon, 18 May 2009 07:21:53 -0400 Original-Received: from smtp5-g21.free.fr ([212.27.42.5]:35904) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M60um-0004Y7-CX for emacs-devel@gnu.org; Mon, 18 May 2009 07:21:52 -0400 Original-Received: from smtp5-g21.free.fr (localhost [127.0.0.1]) by smtp5-g21.free.fr (Postfix) with ESMTP id 44A45D48180 for ; Mon, 18 May 2009 13:21:48 +0200 (CEST) Original-Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp5-g21.free.fr (Postfix) with ESMTP id 69211D48136 for ; Mon, 18 May 2009 13:21:46 +0200 (CEST) Original-Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 2104434BA9; Mon, 18 May 2009 13:21:46 +0200 (CEST) Original-Lines: 30 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:110963 Archived-At: Any objection to my committing this? >From ad102774cf300cde688e23e174c6551b569f0b96 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 18 May 2009 11:33:03 +0200 Subject: [PATCH] automatically .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.135.g540c.dirty