unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: help-gnu-emacs@gnu.org
Cc: Michael Albinus <michael.albinus@gmx.de>
Subject: Re: Support for a new file format
Date: Tue, 7 Dec 2021 23:43:38 +0100	[thread overview]
Message-ID: <8E082ADE-468C-4120-8360-7428664D66E1@Web.DE> (raw)
In-Reply-To: <37D96CCD-139E-48E9-98C6-1F2680C350FC@Web.DE>

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 "\x1f\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




  parent reply	other threads:[~2021-12-07 22:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-04 11:40 Support for a new file format Peter Dyballa
2021-12-04 19:06 ` Michael Albinus
2021-12-04 20:02   ` Peter Dyballa
2021-12-05  8:04     ` Michael Albinus
2021-12-07 22:43     ` Peter Dyballa [this message]
2021-12-04 22:14   ` Peter Dyballa
2021-12-04 22:52     ` Emanuel Berg via Users list for the GNU Emacs text editor

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=8E082ADE-468C-4120-8360-7428664D66E1@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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.
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).