unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: 13770@debbugs.gnu.org
Subject: bug#13770: 24.3.50; Add support for .txz suffix, XZ-compressed tar archives
Date: Wed, 20 Feb 2013 09:55:06 +0100	[thread overview]
Message-ID: <20772.36714.137094.798295@a1i15.kph.uni-mainz.de> (raw)

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 281 bytes --]

The .txz suffix has recently become somewhat popular. For example,
Slackware GNU/Linux and FreeBSD are using it.

Attached patch adds support for .txz to jka-compr. (In other places,
like dired-x, .txz is already recognised). It would be nice if this
could be added to the trunk.


[-- Attachment #2: txz.patch --]
[-- Type: text/plain, Size: 1277 bytes --]

2013-02-20  Ulrich Müller  <ulm@gentoo.org>

	* jka-cmpr-hook.el (jka-compr-compression-info-list)
	(jka-compr-mode-alist-additions): Handle .txz suffix for
	XZ-compressed tar archives.

--- emacs/lisp/jka-cmpr-hook.el
+++ emacs/lisp/jka-cmpr-hook.el
@@ -234,6 +234,10 @@
      "XZ compressing"     "xz"           ("-c" "-q")
      "XZ uncompressing"   "xz"           ("-c" "-q" "-d")
      t t "\3757zXZ\0"]
+    ["\\.txz\\'"
+     "XZ compressing"     "xz"           ("-c" "-q")
+     "XZ uncompressing"   "xz"           ("-c" "-q" "-d")
+     t nil "\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.
@@ -302,7 +306,9 @@
   :group 'jka-compr)
 
 (defcustom jka-compr-mode-alist-additions
-  (list (cons (purecopy "\\.tgz\\'") 'tar-mode) (cons (purecopy "\\.tbz2?\\'") 'tar-mode))
+  (list (cons (purecopy "\\.tgz\\'") 'tar-mode)
+	(cons (purecopy "\\.tbz2?\\'") 'tar-mode)
+	(cons (purecopy "\\.txz\\'") 'tar-mode))
   "List of pairs added to `auto-mode-alist' when installing jka-compr.
 Uninstalling jka-compr removes all pairs from `auto-mode-alist' that
 installing added.

             reply	other threads:[~2013-02-20  8:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20  8:55 Ulrich Müller [this message]
     [not found] ` <handler.13770.B.136135061232164.ack@debbugs.gnu.org>
2013-02-20  9:38   ` bug#13770: 24.3.50; Add support for .txz suffix, XZ-compressed tar archives Ulrich Mueller
2013-02-20 14:30 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20772.36714.137094.798295@a1i15.kph.uni-mainz.de \
    --to=ulm@gentoo.org \
    --cc=13770@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).