From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.devel Subject: Re: cpio-mode version 0.08 Date: Tue, 5 Jun 2018 15:55:29 +0000 Message-ID: References: <87d0x63r58.fsf@tromey.com> <87o9gpww28.fsf@gmx.de> <87efhlh8kb.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000062764e056de7142b" X-Trace: blaine.gmane.org 1528214075 23295 195.159.176.226 (5 Jun 2018 15:54:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 15:54:35 +0000 (UTC) Cc: Tom Tromey , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 05 17:54:31 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQEI0-0005wE-Cu for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2018 17:54:28 +0200 Original-Received: from localhost ([::1]:47689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEK7-0003BG-Ix for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2018 11:56:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEJ2-0002gr-Lz for emacs-devel@gnu.org; Tue, 05 Jun 2018 11:55:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQEJ1-0004EX-NN for emacs-devel@gnu.org; Tue, 05 Jun 2018 11:55:32 -0400 Original-Received: from mail-ot0-x22a.google.com ([2607:f8b0:4003:c0f::22a]:33203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQEJ1-0004CU-F1 for emacs-devel@gnu.org; Tue, 05 Jun 2018 11:55:31 -0400 Original-Received: by mail-ot0-x22a.google.com with SMTP id h6-v6so3435821otj.0 for ; Tue, 05 Jun 2018 08:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gO1BXmk+P9iJK6lcPjZKgpj3AdpoxK0lDz22jsSK2RM=; b=AHMkQes/gfbgI6E3p44EJQ3BKlch7p987CEDUgLuMgJ3Yyl21mFxwt88HCNGd1nD4W 0GoFhGtxN0fdfNQpoCyYzkTyhVEFS7f/WSXVkrGr7qTko5NxptQkUMk3IEgfU8r6dtlq L9Affw5X6auET3nElm/g6FIEsOxCQC7MmVtT9cA0QxbXOqrNzIL+uF5ihw7igod0oUwx gBvdjv0faglKxokes/69RFzxpLSh4vjOS4Ea0xm8XW4tsgkNCxZx5OnEq/KpTWDMpgQT QWFYLVwC+uOhC7iaIJKfUj8LdKDONB1DoyC5M/VybyrMof5KON68YqCy1jwmkBwYgBFT LyTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gO1BXmk+P9iJK6lcPjZKgpj3AdpoxK0lDz22jsSK2RM=; b=J0lhgQUhHquuR7n7tXoVfW0l/hq32sIE9MNeWN9QBIToLU2L8Ylm4u7IsNfdsKefUH TW8dJ7F9F1SlyAcDdDDFFKsJoN/fVfe6Hv1aFKcUqz+GyXADAOwrnhfSNgsO4ARVQNtJ sNwTrCJ8QLnRa83ih73Z+9sV5K68XoNTbUKqjcM038ilUz9uhB/F1+bePHT6gpVb4SZ1 e0lTVd1Jf0vtSBu9Hw2zYER6ktHSGd6pg4veSs+vr6eyY2ib3djtCh7pjWXtcfi+7vh8 dLWoDpps+YX0Yg/nPwAlUfO8AF/4RyrV9U8BKCScJrL+Vg41E4pQEdBVtKd+t8Xrnama ECpw== X-Gm-Message-State: ALKqPwdbGr18MuBl29S12gGIEyZpifXMw4PwRq/G9iW/E1wT1e4RVhNy i5ynFHXLvRA7CiZxJh218Zb2fn+4amDrNtIEfg== X-Google-Smtp-Source: ADUXVKKWyDjGalh80qiCwAbkaqa9833G3cru2G5UuTGs0xmaSHlJWwPDwK2FPoIvvMbsuEFjs+ncyqCgXY3wSJ6Bvpk= X-Received: by 2002:a9d:542e:: with SMTP id j46-v6mr18904743oth.41.1528214130421; Tue, 05 Jun 2018 08:55:30 -0700 (PDT) Original-Received: by 2002:a4a:c619:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 08:55:29 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226036 Archived-At: --00000000000062764e056de7142b Content-Type: text/plain; charset="UTF-8" On Tue, Jun 5, 2018 at 10:38 AM, Douglas Lewan wrote: > Michael, > > Thanks for the pointers. I'll have a look when I get a few minutes. > > On Tue, Jun 5, 2018 at 9:44 AM, Michael Albinus > wrote: > >> Douglas Lewan writes: >> >> Hi Doug, >> >> > 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. >> >> Thanks for the offer. At first step, you might just try the >> tramp-archive solution, and provide feedback about usability (nobody did >> so far). Just open a file like "/path/to/file.cpio/", and play with >> it. The point is the trailing slash. You could open even compressed >> archives, like ".../file.cpio.gz/". >> >> For knowing libarchive and binding Lisp to a C library ... all of this I >> didn't know either when starting to contribute to Emacs. I've learned it >> by doing, which seems the only way to do it :-) >> >> > 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. >> >> I have written test/lisp/net/tramp-archive-tests.el for such >> purposes. Maybe you can steal some ideas or code from there ... >> >> And of course, you could ask me whatever you want about. >> >> > Thanks. >> >> Best regards, Michael. >> > > Michael, So far, I've downloaded source for emacs 26.1 and built it (in a somewhat hobbled development environment -- no X development, no image support, without gnutls). I've loaded tramp and url-tramp and opened test files (with names ending in '.cpio). All I get is "File not found and directory is write-protected". I assume I'm missing something. Can you help? Also, a quick look suggests that libarchive may not be universally available. I'm a big fan of portability, if it's possible, so, if that's the case, then I might prefer to avoid it. Any thoughts? -- ,Doug Douglas Lewan (908) 720-7908 Member of the PKRA. --00000000000062764e056de7142b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, Jun 5, 2018 at 9:44 AM, Michael Albinus &= lt;michael.albi= nus@gmx.de> wrote:
Douglas Lewan <d.lewan2000@gmail.com> writes:

Hi Doug,

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

Thanks for the offer. At first step, you might just try the
tramp-archive solution, and provide feedback about usability (nobody did so far). Just open a file like "/path/to/file.cpio/", and play wi= th
it. The point is the trailing slash. You could open even compressed
archives, like ".../file.cpio.gz/".

For knowing libarchive and binding Lisp to a C library ... all of this I didn't know either when starting to contribute to Emacs. I've learn= ed it
by doing, which seems the only way to do it :-)

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

I have written test/lisp/net/tramp-archive-tests.el for such purposes. Maybe you can steal some ideas or code from there ...

And of course, you could ask me whatever you want about.

> Thanks.

Best regards, Michael.


Michael,
So far, I've downloaded source for emacs 26.1 and built it(in a somewhat hobbled development environment -- no X development,
no image support, without gnutls).
I've loaded tramp and u= rl-tramp and opened test files (with names ending in '.cpio).
= All I get is "File not found and directory is write-protected".
I assume I'm missing something. Can you help?

= Also, a quick look suggests that libarchive may not be universally availabl= e.
I'm a big fan of portability, if it's possible, so, if = that's the case,
then I might prefer to avoid it. Any thoughts= ?

--
=
,Doug
Douglas Lewan
(908) 720-7908
Member of the PKRA.
--00000000000062764e056de7142b--