[Top][All Lists]

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

Re: cpio-mode version 0.08

From: Douglas Lewan
Subject: Re: cpio-mode version 0.08
Date: Tue, 5 Jun 2018 09:20:53 +0000

On Tue, Jun 5, 2018 at 7:07 AM, Michael Albinus <address@hidden> wrote:
Tom Tromey <address@hidden> writes:

Hi Tom,

> It would be cool to have a cpio (and other archive type) file name
> handler, so that dired could just be reused rather than reimplemented.
> I realize this is possible with Tramp+GVFS now, but a pure elisp
> implementation would be even better.

... and harder. Tramp uses GVFS only as transition layer, because it
offers an API for libarchive(3). Switching to a direct access of the
libarchive C API would have advantages:

* Not bound to GVFS anymore, available on other platforms therefore.
* Not bound to the restrictions GVFS has taken to libarchive, like no
  support for writing into archives, missing proper file attributes, etc.

I have been lazy so far, because Tramp knows already the GVFS API, and
it was easy to add this support. But if there are heavy demands for
change, I could consider to switch to libarchive.

A pure Lisp implementation is wasted work, I believe. Look at the list
of file formats libarchive supports. (info "(tramp) Archive file names")

> Tom

Best regards, Michael.

Indeed. I'd be more than happy to surrender to work to someone
who can provide a simpler implementation. I don't happen to know GVFS or libarchive
or the question of how to bind lisp to a C library.

In the meantime, cpio-mode looks usable now for the archives it supports.
What remains is testing and polish. I would very much appreciate testing
from anyone who can help with it.


Douglas Lewan
(908) 720-7908
Member of the PKRA.

reply via email to

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