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 Date: Fri, 2 Feb 2018 10:47:54 -0500 Message-ID: References: <87tvuzh597.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1d75f8b9a0a705643ca247" X-Trace: blaine.gmane.org 1517591565 24908 195.159.176.226 (2 Feb 2018 17:12:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Feb 2018 17:12:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 02 18:12:41 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 1ehesv-00057C-UM for ged-emacs-devel@m.gmane.org; Fri, 02 Feb 2018 18:12:22 +0100 Original-Received: from localhost ([::1]:40678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eheux-0006Nt-3E for ged-emacs-devel@m.gmane.org; Fri, 02 Feb 2018 12:14:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehdjQ-00073g-5Q for emacs-devel@gnu.org; Fri, 02 Feb 2018 11:00:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehdfR-0002rx-1E for emacs-devel@gnu.org; Fri, 02 Feb 2018 10:58:28 -0500 Original-Received: from mail-ot0-x22c.google.com ([2607:f8b0:4003:c0f::22c]:37757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehdfQ-0002pm-Fz for emacs-devel@gnu.org; Fri, 02 Feb 2018 10:54:20 -0500 Original-Received: by mail-ot0-x22c.google.com with SMTP id e64so840632ote.4 for ; Fri, 02 Feb 2018 07:54:20 -0800 (PST) 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=G0+MM5Rw1rnBL5IuR3pS85l9BYRhBoupid4DsXHXITc=; b=HGO0r6vzXiBuzIkL2nwLIHxHr6JiU9cfhBL30z7uaHU/sRtj7y/flZ0TBk4Eo7CuEw 7BvHLBf21cf4pjwocx9bazKt999zqqRtgGVf1FBwPqp8relzj950+gohoNHbg5tYmMKA OHlMKzdseDQxHbJcHSc2CSm8SrtYwdZGIf5791gQ27IRDigWzQWPoDFIlLyagB93FYIh esT4rBrajBzQn+Q+vi/2KsPhxgpTa0edW8Ho8Q4cgvZhUm8bubQI+OX3tHSwtp7zznND usbzvldEVlYRnRSj6h0cDMIx2QiOWrjxgylXMadZsUre3m0QBqjaT0s3pzZcZY1SiQvm OROQ== 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=G0+MM5Rw1rnBL5IuR3pS85l9BYRhBoupid4DsXHXITc=; b=TR+xE5GAVWRXGZETaxFiL3uTOMtwR/Kg1w+T56/DrfOGpASWKNvZkKP+8AMRza9/FD QjbooxDrHLwYG1ZpwarL0d+IbJcQf8eEKU2ML+mgg3vefBSR0NlisRWeyQ3vZXouM8Wl AoNTfLz0fC+9EejGSwpID+UiTEAGD6d6sh3jFuUPY2QxIRlzq7J/azlRokIylf09YGHx bxECy//+FHB+SlEUlH20aX8AF+xDK2VeN6KbGb/TrdKLYowuKmkgjefq6jtl6fRtJxcE sdemJ/ie+HqYD07c5jcTTU1Df4uZ8um69ngR3iK6wB9DpJDbBbLCp34M4RPZgfYJDRiF TMZw== X-Gm-Message-State: AKwxytexSfh6O9ltB6ODQQaJwb93OeCwdN5Cgb9MKuGZJ412v6bpvaGW X45kxiucqK5fXXfSPElZBPyir12b3U7tHI3UTQ== X-Google-Smtp-Source: AH8x227bxt4W5APyyCcl+jBbI8k/Z1FsKKEln9rYvkLyfxIpOtywLgBBDDbfPjzu6ShHKLhlKc/QtnrSkFRWTUFNK+E= X-Received: by 10.157.82.89 with SMTP id q25mr12297749otg.376.1517586474441; Fri, 02 Feb 2018 07:47:54 -0800 (PST) Original-Received: by 10.74.134.7 with HTTP; Fri, 2 Feb 2018 07:47:54 -0800 (PST) In-Reply-To: <87tvuzh597.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::22c 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:222415 Archived-At: --94eb2c1d75f8b9a0a705643ca247 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Michael, First: Oh, my! I've been reading about a missing cpio mode in the emacs TODO file for years, I'd sort of assumed that there was little work on it. (I do admit that when I'd last joined this list, I did receive a few attempts to start such a project.) Your work sounds similar to mine. Indeed, my goal is to write something like a dired front end to all the cpio formats, with relatively easy extensibility to others. This should include editing, adding and deleting archive members. That's turned out to be a little more than I was expecting. Once I started looking more closely, dired is much larger that I was expecting. FYI The design is coarsely given in this diagram. ;; +----------------------+ +-------------+ +-------------+ ;; | Format specific code | | | | | ;; | +---------------+ | | | | | ;; | | cpio-bin | | | | | | ;; | | +--------------+ | | CPIO | | dired-like | ;; | +-|cpio-crc | |<->| Logic |<->| UI | ;; | | +-------------+ | | | | | ;; | +-| hpbin | | | | | | ;; | | +------------+ | | | | | ;; | +-| =C2=B7=C2=B7=C2=B7 | | | | | = | ;; | +------------+ | | | | | ;; +----------------------+ +-------------+ +-------------+ ;; =CE=9B =CE=9B =CE=9B ;; | | | ;; V V V ;; +----------------------------------------------------------+ ;; | generic code | ;; | +------------+ +--------------+ +-----+ | ;; | | cpio-modes | | cpio-generic | | =C2=B7=C2=B7=C2=B7 | = | ;; | +------------+ +--------------+ +-----+ | ;; +----------------------------------------------------------+ Could you point me to your code? Thanks. On Fri, Feb 2, 2018 at 8:48 AM, Michael Albinus wrote: > Douglas Lewan writes: > > > All, > > Hi Doug, > > > Two or three years ago I joined this mailing list and announced that I > > wanted to write a cpio mode for emacs. > > > > Well, after various surprising events and mishaps I'm back, and expect > > to have something worth showing soon. > > Time passes, and I have committed tramp-archive.el to Emacs' master > branch, which supports also cpio archives (read-only for now). See > . > > Could you pls compare this with your work? > > > Thanks. > > Best regards, Michael. > --=20 ,Doug Douglas Lewan (908) 720-7908 What one programmer can do in one month, two programmers can do in two months. -- Fred Brooks --94eb2c1d75f8b9a0a705643ca247 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Michael,

First: Oh, my! I've been r= eading about a missing cpio mode in the emacs TODO file for years, I'd = sort of assumed that there was little work on it. (I do admit that when I&#= 39;d last joined this list, I did receive a few attempts to start such a pr= oject.)

Your work sounds similar to mine. Indeed, = my goal is to write something like a dired front end to all the cpio format= s, with relatively easy extensibility to others. This should include editin= g, adding and deleting archive members. That's turned out to be a littl= e more than I was expecting. Once I started looking more closely, dired is = much larger that I was expecting.

FYI The design i= s coarsely given in this diagram.

;; +----------------------+=C2=A0 =C2=A0+--------= -----+=C2=A0 =C2=A0+-------------+
;; | Format specific code |=C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0|
;; = | +---------------+=C2=A0 =C2=A0 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=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0V
;; +-------------= ---------------------------------------------+
;; | generic code=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
<= font face=3D"monospace, monospace">;; |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 += ------------+ +--------------+ +-----+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
;; |=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | cpio-modes | | cpio-generic | | =C2=B7=C2=B7=C2=B7 |=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
;; |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +------------+ +---------= -----+ +-----+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
;; +-------------------------------------------= ---------------+

Could you point me t= o your code? Thanks.

<= br>
On Fri, Feb 2, 2018 at 8:48 AM, Michael Albin= us <michael.albinus@gmx.de> wrote:
Douglas Lewan <= d.lewan2000@gmail.com> writes:

> All,

Hi Doug,

> Two or three years ago I joined this mailing list and announced that I=
> wanted to write a cpio mode for emacs.
>
> Well, after various surprising events and mishaps I'm back, and ex= pect
> to have something worth showing soon.

Time passes, and I have committed tramp-archive.el to Emacs' mas= ter
branch, which supports also cpio archives (read-only for now). See
<http://lists.gnu.org/archive/= html/emacs-devel/2017-12/msg00263.html>.

Could you pls compare this with your work?

> Thanks.

Best regards, Michael.



--
,Doug
Douglas Lewan
(908) 720-7908
What one pro= grammer can do in one month, two programmers can do in two months. -- Fred = Brooks
--94eb2c1d75f8b9a0a705643ca247--