summaryrefslogtreecommitdiff
path: root/app-editors/emacs/files/emacs-23.0.94-handle-xz-suffix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/emacs/files/emacs-23.0.94-handle-xz-suffix.patch')
-rw-r--r--app-editors/emacs/files/emacs-23.0.94-handle-xz-suffix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-editors/emacs/files/emacs-23.0.94-handle-xz-suffix.patch b/app-editors/emacs/files/emacs-23.0.94-handle-xz-suffix.patch
new file mode 100644
index 0000000..9345cea
--- /dev/null
+++ b/app-editors/emacs/files/emacs-23.0.94-handle-xz-suffix.patch
@@ -0,0 +1,16 @@
+Automatically handle .xz suffix (XZ-compressed files)
+From Jim Meyering <meyering@redhat.com> on emacs-devel
+
+--- 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.