unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13770: 24.3.50; Add support for .txz suffix, XZ-compressed tar archives
@ 2013-02-20  8:55 Ulrich Müller
       [not found] ` <handler.13770.B.136135061232164.ack@debbugs.gnu.org>
  2013-02-20 14:30 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Ulrich Müller @ 2013-02-20  8:55 UTC (permalink / raw)
  To: 13770

[-- 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-20 14:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20  8:55 bug#13770: 24.3.50; Add support for .txz suffix, XZ-compressed tar archives Ulrich Müller
     [not found] ` <handler.13770.B.136135061232164.ack@debbugs.gnu.org>
2013-02-20  9:38   ` Ulrich Mueller
2013-02-20 14:30 ` Stefan Monnier

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).