help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for a new file format


From: Peter Dyballa
Subject: Re: Support for a new file format
Date: Tue, 7 Dec 2021 23:43:38 +0100

While trying to compile GNU Emacs 28.0.90 I patched it, and adding the addition 
to auto-mode-alist GNU Emacs 28.0.90 could easily open CRATE archive files and 
walk me though the archive members:


--- lisp/jka-cmpr-hook.el~      2021-12-01 21:37:09.000000000 +0100
+++ lisp/jka-cmpr-hook.el       2021-12-07 22:43:15.000000000 +0100
@@ -261,7 +261,11 @@
     ["\\.tzst\\'"
      "zstd compressing"   "zstd"         ("-c" "-q")
      "zstd uncompressing" "zstd"         ("-c" "-q" "-d")
-     t nil "\050\265\057\375"]))
+     t nil "\050\265\057\375"]
+    ["\\.crate\\'"
+     "" "" nil
+     "decompressing CRATE archive" "gzip" ("-c" "-q" "-d" "-S .crate")
+      t nil "\213"]))
 
   "List of vectors that describe available compression techniques.
 Each element, which describes a compression technique, is a vector of



It works very fine: PNG archive members are displayed graphically and YAML 
files are displayed in yaml-mode. Ordinary TAR files are still handled as usual.

--
Greetings

  Pete

Film is a dog: the head is commerce, the tail is art. And only rarely does the 
tail wag the dog.
                                – Joseph Losey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]