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 18:57:56 +0000 Message-ID: References: <87d0x63r58.fsf@tromey.com> <87o9gpww28.fsf@gmx.de> <87efhlh8kb.fsf@gmx.de> <87wovdi584.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d1fbd4056de9a0f4" X-Trace: blaine.gmane.org 1528225012 24607 195.159.176.226 (5 Jun 2018 18:56:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 18:56:52 +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 20:56:48 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 1fQH8R-0006In-Qo for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2018 20:56:48 +0200 Original-Received: from localhost ([::1]:48569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQHAZ-0002EJ-0C for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2018 14:58:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQH9b-0002Cv-78 for emacs-devel@gnu.org; Tue, 05 Jun 2018 14:58:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQH9Z-0004Sv-W9 for emacs-devel@gnu.org; Tue, 05 Jun 2018 14:57:59 -0400 Original-Received: from mail-ot0-x230.google.com ([2607:f8b0:4003:c0f::230]:36769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQH9Z-0004RJ-Pu for emacs-devel@gnu.org; Tue, 05 Jun 2018 14:57:57 -0400 Original-Received: by mail-ot0-x230.google.com with SMTP id m11-v6so4129744otf.3 for ; Tue, 05 Jun 2018 11:57:57 -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=UrrAahJcQbgDhzmjovKYRW7Z8EMpwznowUfVn2pMiFI=; b=lemI323kvlraGYsQzdlah4uLuXSzbwc8fFqadahNBzNzW5Gch8dFEOzpBFI6UEWYBL pSsX89w6UibgT1D6TGLFBaqxPy8cozwN81Zj60olWnnYZZ8wK0/Z1Vq1M03cZ1MTgPT4 m9PlroJuF58Emdba4DnuTyxkCYuiB5CLFaKuyAGyqMjjdRDiAgD0uGKlXM5QvEkugR18 4LjUcfD8Fw7nD+9CY7ngqGqItHqBeV6dIjAWL7dxGszxmr1QMHScMX+GB98WZJxAM5S8 2XMWKk33VYhUC8/WoQbLnGKdWZllE15d/xJfAXTCU+fDzTjqW/wEju2i2hkkodEnBrpU snZw== 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=UrrAahJcQbgDhzmjovKYRW7Z8EMpwznowUfVn2pMiFI=; b=jPN3jkK/D0U2KCIEssHr8IzJOc9L72vww9mC7wpnKPSO4RdV2Q6h1I+oOAGE+2vzgw y9UeIgUe5zE5g6yiF8ZKALzmjZq2LLMgAP8fCXOcCDhkHiSB9LDA91P0619Q6eM5XtoS /rZ57zdptjafz4sxSZ2BfbOOrY2q3qNfQqF5EcQtxUDOKi8N46D90uyfskPHseND5ALI ggzrXljHsizJrT8lVkg6cb133j7yw1ySD3trSz3ONmAQhIoh+8AUj9NQFfkLMPov4iGW E4h9dC3rkbrG30PxsSeDa1S+PhQ9EVlsgQaPFQPZ8u1QsaM1iYDg2asgqriGoFDkihUW 2nRw== X-Gm-Message-State: APt69E3+owUY2HS0/tPO20AdzeepuRgGvNgRH15yjLsoqZRGdwKGpafp kk2aRcQSn9vfsUtjITaY01TNjhM6qgwATVP9fg== X-Google-Smtp-Source: ADUXVKJIhPohZksuJNcHOKwiR+rqoItqHOd7+XlMzxykaqvFeY0Y36YkLQELRiWDMCeJuI0MZdAjDK/Y41TIqDiXLf4= X-Received: by 2002:a9d:2fda:: with SMTP id b26-v6mr17378145otd.177.1528225076475; Tue, 05 Jun 2018 11:57:56 -0700 (PDT) Original-Received: by 2002:a4a:c619:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 11:57:56 -0700 (PDT) In-Reply-To: <87wovdi584.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::230 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:226041 Archived-At: --000000000000d1fbd4056de9a0f4 Content-Type: text/plain; charset="UTF-8" On Tue, Jun 5, 2018 at 4:10 PM, Michael Albinus wrote: > Douglas Lewan writes: > > > Michael, > > Hi Doug, > > > 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? > > tramp-archive.el is new in Emacs 27 and Tramp 2.4. So you might use > latest sources from either Emacs or Tramp repository. > Forgive me, but I don't know where the latest sources are. People write of them, but don't give explicit references. > > 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? > > Yes, that's a problem. Maybe we could do something like Emacs does for > dired. Where applicable, it uses the external "ls" command, otherwise it > uses the ls-lisp library. > > This means, we should use an Elisp implementation (like your cpio code) > on systems which have no libarchive(3) support, for the cost of > supporting less archive formats. The upper interface would still be a > file name handler like tramp-archive provides as of today; all other > packages using this wouldn't care the underlying implementation. > Seems reasonable. This would probably be a late addition for my cpio-mode, but I'm more than willing to do it. Does your tramp code allow for editing of archive entries and their attributes? That would be a necessary piece of guaranteeing a consistent user experience. -- ,Doug Douglas Lewan (908) 720-7908 Member of the PKRA. --000000000000d1fbd4056de9a0f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= On Tue, Jun 5, 2018 at 4:10 PM, Michael Albinus <michael.albinus@gmx.= de> wrote:
Douglas Lewan &l= t;d.lewan2000@gmail.com> wr= ites:

> Michael,

Hi Doug,

> 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<= br> > ending in '.cpio).
> All I get is "File not found and directory is write-protected&quo= t;.
>
> I assume I'm missing something. Can you help?

tramp-archive.el is new in Emacs 27 and Tramp 2.4. So you might use<= br> latest sources from either Emacs or Tramp repository.
=
Forgive me, but I don't know where the latest sources ar= e.
People write of them, but don't give explicit references.<= /div>


> Also, a quick look suggests that libarchive may not be universally
> available.=C2=A0 I'm a big fan of portability, if it's possibl= e, so, if
> that's the case, then I might prefer to avoid it. Any thoughts?
Yes, that's a problem. Maybe we could do something like Emacs do= es for
dired. Where applicable, it uses the external "ls" command, other= wise it
uses the ls-lisp library.

This means, we should use an Elisp implementation (like your cpio code)
on systems which have no libarchive(3) support, for the cost of
supporting less archive formats. The upper interface would still be a
file name handler like tramp-archive provides as of today; all other
packages using this wouldn't care the underlying implementation.

Seems reasonable. This would probably be a la= te addition for my cpio-mode,
but I'm more than willing to do= it.
Does your tramp code allow for editing of archive entries and= their attributes?
That would be a necessar= y piece of guaranteeing a consistent user experience.



--
,Doug
Douglas Lewan
(908) 720-7908
Membe= r of the PKRA.
--000000000000d1fbd4056de9a0f4--