From unknown Sun Jun 22 11:32:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8968 <8968@debbugs.gnu.org> To: bug#8968 <8968@debbugs.gnu.org> Subject: Status: arc-mode 7z writing support Reply-To: bug#8968 <8968@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:32:58 +0000 retitle 8968 arc-mode 7z writing support reassign 8968 emacs submitter 8968 Juri Linkov severity 8968 wishlist tag 8968 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 30 18:07:29 2011 Received: (at submit) by debbugs.gnu.org; 30 Jun 2011 22:07:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcPOS-0003KY-QF for submit@debbugs.gnu.org; Thu, 30 Jun 2011 18:07:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcPOS-0003KN-0L for submit@debbugs.gnu.org; Thu, 30 Jun 2011 18:07:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcPOL-0006JX-5b for submit@debbugs.gnu.org; Thu, 30 Jun 2011 18:07:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:37138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcPOK-0006JT-Tm for submit@debbugs.gnu.org; Thu, 30 Jun 2011 18:07:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcPOJ-0006lp-9G for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2011 18:07:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcPOG-0006Im-KP for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2011 18:07:18 -0400 Received: from smtp-out4.starman.ee ([85.253.0.6]:51458 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcPOG-0006II-2Y for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2011 18:07:16 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (62.65.210.87.cable.starman.ee [62.65.210.87]) by mx2.starman.ee (Postfix) with ESMTP id BFCDE3F40B9 for ; Fri, 1 Jul 2011 01:07:10 +0300 (EEST) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: arc-mode 7z writing support Organization: JURTA Date: Fri, 01 Jul 2011 00:47:05 +0300 Message-ID: <87k4c356w6.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) I'd like to install a patch that implements update/delete operations for 7z archives in arc-mode.el: === modified file 'lisp/arc-mode.el' --- lisp/arc-mode.el 2011-04-19 13:44:55 +0000 +++ lisp/arc-mode.el 2011-06-30 21:39:45 +0000 @@ -55,9 +55,9 @@ ;; -------------------------------------------- ;; View listing Intern Intern Intern Intern Y Y ;; Extract member Y Y Y Y Y Y -;; Save changed member Y Y Y Y N N +;; Save changed member Y Y Y Y N Y ;; Add new member N N N N N N -;; Delete member Y Y Y Y N N +;; Delete member Y Y Y Y N Y ;; Rename member Y Y N N N N ;; Chmod - Y Y - N N ;; Chown - Y - - N N @@ -328,6 +328,27 @@ (defcustom archive-7z-extract (string :format "%v"))) :group 'archive-7z) +(defcustom archive-7z-expunge + '("7z" "d") + "Program and its options to run in order to delete 7z file members. +Archive and member names will be added." + :type '(list (string :tag "Program") + (repeat :tag "Options" + :inline t + (string :format "%v"))) + :group 'archive-7z) + +(defcustom archive-7z-update + '("7z" "u") + "Program and its options to run in order to update a 7z file member. +Options should ensure that specified directory will be put into the 7z +file. Archive and member name will be added." + :type '(list (string :tag "Program") + (repeat :tag "Options" + :inline t + (string :format "%v"))) + :group 'archive-7z) + ;; ------------------------------------------------------------------------- ;;; Section: Variables @@ -2037,7 +2058,9 @@ (defun archive-7z-summarize () (with-temp-buffer (call-process "7z" nil t nil "l" "-slt" file) (goto-char (point-min)) - (re-search-forward "^-+\n") + ;; Four dashes start the meta info section that should be skipped. + ;; Archive members start with more than four dashes. + (re-search-forward "^-----+\n") (while (re-search-forward "^Path = \\(.*\\)\n" nil t) (goto-char (match-end 0)) (let ((name (match-string 1)) @@ -2084,6 +2107,12 @@ (defun archive-7z-extract (archive name) (message "%s" (buffer-string))) (delete-file tmpfile))))) +(defun archive-7z-write-file-member (archive descr) + (archive-*-write-file-member + archive + descr + archive-7z-update)) + ;; ------------------------------------------------------------------------- ;;; Section `ar' archives. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 30 22:56:10 2011 Received: (at 8968) by debbugs.gnu.org; 1 Jul 2011 02:56:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcTtq-0002ZM-Je for submit@debbugs.gnu.org; Thu, 30 Jun 2011 22:56:10 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcTto-0002Z8-7n for 8968@debbugs.gnu.org; Thu, 30 Jun 2011 22:56:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPI1DU5MCqDH/2dsb2JhbABSp1x4iHnAP4YyBJ5RhCs X-IronPort-AV: E=Sophos;i="4.65,456,1304308800"; d="scan'208";a="118274633" Received: from 76-10-160-199.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.199]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Jun 2011 22:55:57 -0400 Received: by pastel.home (Postfix, from userid 20848) id E94465912D; Thu, 30 Jun 2011 22:55:56 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#8968: arc-mode 7z writing support Message-ID: References: <87k4c356w6.fsf@mail.jurta.org> Date: Thu, 30 Jun 2011 22:55:56 -0400 In-Reply-To: <87k4c356w6.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 01 Jul 2011 00:47:05 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > I'd like to install a patch that implements update/delete operations > for 7z archives in arc-mode.el: Go ahead, Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 04 18:30:50 2011 Received: (at 8968) by debbugs.gnu.org; 4 Jul 2011 22:30:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdrfG-0002qz-03 for submit@debbugs.gnu.org; Mon, 04 Jul 2011 18:30:50 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdrfE-0002qn-3y for 8968@debbugs.gnu.org; Mon, 04 Jul 2011 18:30:48 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 252F66E804B; Mon, 4 Jul 2011 15:30:42 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id EF42A451C2AA; Mon, 4 Jul 2011 15:30:40 -0700 (PDT) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#8968: arc-mode 7z writing support Organization: JURTA References: <87k4c356w6.fsf@mail.jurta.org> Date: Tue, 05 Jul 2011 01:22:18 +0300 In-Reply-To: (Stefan Monnier's message of "Thu, 30 Jun 2011 22:55:56 -0400") Message-ID: <871uy51y7h.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >> I'd like to install a patch that implements update/delete operations >> for 7z archives in arc-mode.el: > > Go ahead, Done. Some users prefer using 7z even for operations on zip archives. This patch provides the right default values for them in case 7z is installed on the system instead of zip/unzip. For searching the available programs it uses exactly the same logic as already is implemented in `archive-zip-extract' (i.e. first try to find zip/unzip, then 7z, and finally pkzip/pkunzip): === modified file 'lisp/arc-mode.el' --- lisp/arc-mode.el 2011-04-19 13:44:55 +0000 +++ lisp/arc-mode.el 2011-07-04 21:44:48 +0000 @@ -235,10 +235,10 @@ (defcustom archive-zip-extract ;; names. (defcustom archive-zip-expunge - (if (and (not (executable-find "zip")) - (executable-find "pkzip")) - '("pkzip" "-d") - '("zip" "-d" "-q")) + (cond ((executable-find "zip") '("zip" "-d" "-q")) + ((executable-find "7z") '("7z" "d")) + ((executable-find "pkzip") '("pkzip" "-d")) + (t '("zip" "-d" "-q"))) "Program and its options to run in order to delete zip file members. Archive and member names will be added." :type '(list (string :tag "Program") @@ -248,10 +248,10 @@ (defcustom archive-zip-expunge :group 'archive-zip) (defcustom archive-zip-update - (if (and (not (executable-find "zip")) - (executable-find "pkzip")) - '("pkzip" "-u" "-P") - '("zip" "-q")) + (cond ((executable-find "zip") '("zip" "-q")) + ((executable-find "7z") '("7z" "u")) + ((executable-find "pkzip") '("pkzip" "-u" "-P")) + (t '("zip" "-q"))) "Program and its options to run in order to update a zip file member. Options should ensure that specified directory will be put into the zip file. Archive and member name will be added." @@ -262,10 +262,10 @@ (defcustom archive-zip-update :group 'archive-zip) (defcustom archive-zip-update-case - (if (and (not (executable-find "zip")) - (executable-find "pkzip")) - '("pkzip" "-u" "-P") - '("zip" "-q" "-k")) + (cond ((executable-find "zip") '("zip" "-q" "-k")) + ((executable-find "7z") '("7z" "u")) + ((executable-find "pkzip") '("pkzip" "-u" "-P")) + (t '("zip" "-q" "-k"))) "Program and its options to run in order to update a case fiddled zip member. Options should ensure that specified directory will be put into the zip file. Archive and member name will be added." From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 20:11:41 2011 Received: (at 8968-done) by debbugs.gnu.org; 8 Jul 2011 00:11:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeyfV-0001BT-E0 for submit@debbugs.gnu.org; Thu, 07 Jul 2011 20:11:41 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeyfS-0001B9-4m for 8968-done@debbugs.gnu.org; Thu, 07 Jul 2011 20:11:39 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id E113B6E808E for <8968-done@debbugs.gnu.org>; Thu, 7 Jul 2011 17:11:31 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 0D1CB451C1A5 for <8968-done@debbugs.gnu.org>; Thu, 7 Jul 2011 17:11:30 -0700 (PDT) From: Juri Linkov To: 8968-done@debbugs.gnu.org Subject: Re: bug#8968: arc-mode 7z writing support Organization: JURTA References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> Date: Fri, 08 Jul 2011 03:09:51 +0300 In-Reply-To: <871uy51y7h.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 05 Jul 2011 01:22:18 +0300") Message-ID: <87mxgpmy40.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8968-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > Some users prefer using 7z even for operations on zip archives. > > This patch provides the right default values for them in case > 7z is installed on the system instead of zip/unzip. > > For searching the available programs it uses exactly the same logic > as already is implemented in `archive-zip-extract' (i.e. first try > to find zip/unzip, then 7z, and finally pkzip/pkunzip): This is installed as well. As reported in http://thread.gmane.org/gmane.emacs.devel/136578/focus=136670 on cygwin the program name is "p7zip". But I can't confirm this fact, so I'm closing this feature request at its current state with the program name "7z". From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 03:11:15 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 07:11:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf5DW-00034S-9x for submit@debbugs.gnu.org; Fri, 08 Jul 2011 03:11:15 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qf5DK-00033q-BN for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 03:11:12 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LO000H006GWFD00@a-mtaout22.012.net.il> for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 10:10:56 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.24.72]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO000GRI6M7U6D0@a-mtaout22.012.net.il>; Fri, 08 Jul 2011 10:10:56 +0300 (IDT) Date: Fri, 08 Jul 2011 10:08:57 +0300 From: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support In-reply-to: <87mxgpmy40.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83r561nt9y.fsf@gnu.org> References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Juri Linkov > Date: Fri, 08 Jul 2011 03:09:51 +0300 > > As reported in http://thread.gmane.org/gmane.emacs.devel/136578/focus=136670 > on cygwin the program name is "p7zip". But I can't confirm this fact, > so I'm closing this feature request at its current state with the > program name "7z". In fact, I think any GNU/Linux system that cares about avoiding non-free software will have only p7zip, not 7z. That's because current releases of 7z are not Free Software, whereas p7zip uses the free-software subset of the 7z algorithms. So by supporting only 7z, let alone making that the default, Emacs is in fact preferring a non-free software program to a free one. We have the same situation with zip/unzip vs pkzip/pkunzip, and in that case we do it the other way around: the default is the free software variant, with the non-free one available as an option. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 09:06:48 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 13:06:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfAlc-0006WT-EP for submit@debbugs.gnu.org; Fri, 08 Jul 2011 09:06:48 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfAlZ-0006WD-FF for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 09:06:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EANv/Fk5MCqt8/2dsb2JhbABTp0R4iHvCf4Y4BJ59hC8 X-IronPort-AV: E=Sophos;i="4.65,499,1304308800"; d="scan'208";a="123734318" Received: from 76-10-171-124.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Jul 2011 09:06:39 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9D46259160; Fri, 8 Jul 2011 09:06:39 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support Message-ID: References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> Date: Fri, 08 Jul 2011 09:06:39 -0400 In-Reply-To: <83r561nt9y.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jul 2011 10:08:57 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8968 Cc: Juri Linkov , 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > So by supporting only 7z, let alone making that the default, Emacs is > in fact preferring a non-free software program to a free one. We have Oh, I didn't realize 7z was non-Free. We need to fix that, then. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 11:56:40 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 15:56:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfDPz-0003Gb-JE for submit@debbugs.gnu.org; Fri, 08 Jul 2011 11:56:39 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfDPx-0003GN-7P for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 11:56:38 -0400 Received: by pzk5 with SMTP id 5so1673583pzk.3 for <8968@debbugs.gnu.org>; Fri, 08 Jul 2011 08:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=AHRfGFZIyNY/l/zDdsvKSlTyOa2B5ByOczFcD+YtxlQ=; b=n1MEGAhRDlFpma7PUiKV01ExMTjpmZUU2Eyxsf3fhs3KuDxMsOB2gQWsoz2qMGDFID XBfB+mRCQmBwZqhrgv0Yscncl7qNQOrqdEVX3yMl5Tgf0XrWrVgldfp/ACYF+YwrhzGv a3aoSt8bXN9ZpjfWt9pQ2t+Y6O2zaMb5+kWn8= Received: by 10.68.39.39 with SMTP id m7mr3399676pbk.54.1310140591127; Fri, 08 Jul 2011 08:56:31 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.18.65]) by mx.google.com with ESMTPS id i9sm6374259pbk.52.2011.07.08.08.56.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 08:56:30 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 02FC2C4F; Fri, 8 Jul 2011 23:56:23 +0800 (MYT) From: Jason Rumney To: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> Date: Fri, 08 Jul 2011 23:56:23 +0800 In-Reply-To: <83r561nt9y.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jul 2011 10:08:57 +0300") Message-ID: <87vcvcn4uw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8968 Cc: Juri Linkov , 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Eli Zaretskii writes: >> From: Juri Linkov >> Date: Fri, 08 Jul 2011 03:09:51 +0300 >> >> As reported in http://thread.gmane.org/gmane.emacs.devel/136578/focus=136670 >> on cygwin the program name is "p7zip". But I can't confirm this fact, >> so I'm closing this feature request at its current state with the >> program name "7z". > > In fact, I think any GNU/Linux system that cares about avoiding > non-free software will have only p7zip, not 7z. That's because > current releases of 7z are not Free Software, whereas p7zip uses the > free-software subset of the 7z algorithms. All GNU/Linux systems will have only p7zip, as that is the ported version of 7-zip. 7z is only available for Windows, and comes with two command line binaries - 7za.exe, which is Free Software, and 7z.exe which is not (due to unRAR support). From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 14:46:39 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 18:46:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfG4V-0000sH-EO for submit@debbugs.gnu.org; Fri, 08 Jul 2011 14:46:39 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfG4T-0000s0-Pb for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 14:46:38 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 55CDA6E8077; Fri, 8 Jul 2011 11:46:32 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4ADC5451C03C; Fri, 8 Jul 2011 11:46:29 -0700 (PDT) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#8968: arc-mode 7z writing support Organization: JURTA References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> Date: Fri, 08 Jul 2011 21:38:17 +0300 In-Reply-To: (Stefan Monnier's message of "Fri, 08 Jul 2011 09:06:39 -0400") Message-ID: <87tyaw8vqb.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >> So by supporting only 7z, let alone making that the default, Emacs is >> in fact preferring a non-free software program to a free one. We have > > Oh, I didn't realize 7z was non-Free. We need to fix that, then. AFAIU, 7z as a program is Free Software on GNU/Linux systems. However, some packages can process formats of non-Free archives. I see the following Debian packages: * p7zip-rar.deb - non-free rar module for p7zip p7zip-rar provides a module for p7zip-full to make 7z able to extract RAR files. * p7zip-full.deb provides: - 7za - a standalone version of the 7-zip tool that handles 7z archives and other free compression formats. - 7z - handles 7z and other free compression formats. * p7zip.deb provides: - 7zr - a standalone minimal version that only handles 7z archives. - p7zip - a gzip like wrapper around 7zr. There is some confusion: the same name `p7zip' is used for the package and for the program, and the same name `7z' is used for the package, for the program and for the format name. The program `p7zip' (a gzip like wrapper) is not suitable for using in arc-mode.el on GNU/Linux. That's why I omitted it from searching for available programs. On GNU/Linux it will find the wrong program. But I don't know the situation on cygwin. The package `p7zip-full' uses the Free Software subset of the algorithms supported by 7z. It contains Free Software that has program names `7z', `7za'. So it seems correct to use `7z' for search a program to handle zip archives. The difference between programs `7z' and `7za' is not essential: one of them is just a standalone version of another. p7zip-rar.deb is a separate non-free module for rar archives. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 14:46:42 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 18:46:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfG4Y-0000sT-OK for submit@debbugs.gnu.org; Fri, 08 Jul 2011 14:46:42 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfG4U-0000s4-UG for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 14:46:39 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 9D95A6E805E; Fri, 8 Jul 2011 11:46:33 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 95333451C03C; Fri, 8 Jul 2011 11:46:32 -0700 (PDT) From: Juri Linkov To: Jason Rumney Subject: Re: bug#8968: arc-mode 7z writing support Organization: JURTA References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87vcvcn4uw.fsf@gnu.org> Date: Fri, 08 Jul 2011 21:39:27 +0300 In-Reply-To: <87vcvcn4uw.fsf@gnu.org> (Jason Rumney's message of "Fri, 08 Jul 2011 23:56:23 +0800") Message-ID: <877h7s8vmq.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > All GNU/Linux systems will have only p7zip, as that is the ported > version of 7-zip. 7z is only available for Windows, and comes with two > command line binaries - 7za.exe, which is Free Software, and 7z.exe > which is not (due to unRAR support). Does this mean that we should use the binary "7z" on GNU/Linux systems and "7za" on Windows? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 15:52:04 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 19:52:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfH5n-0003LC-NZ for submit@debbugs.gnu.org; Fri, 08 Jul 2011 15:52:03 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfH5l-0003Kf-1O for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 15:52:02 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LO1005005NITB00@a-mtaout21.012.net.il> for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 22:51:54 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO1005IX5UGSO40@a-mtaout21.012.net.il>; Fri, 08 Jul 2011 22:51:54 +0300 (IDT) Date: Fri, 08 Jul 2011 22:49:55 +0300 From: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support In-reply-to: <87tyaw8vqb.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83liw8o8m4.fsf@gnu.org> References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87tyaw8vqb.fsf@mail.jurta.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Juri Linkov > Cc: Eli Zaretskii , 8968@debbugs.gnu.org > Date: Fri, 08 Jul 2011 21:38:17 +0300 > > >> So by supporting only 7z, let alone making that the default, Emacs is > >> in fact preferring a non-free software program to a free one. We have > > > > Oh, I didn't realize 7z was non-Free. We need to fix that, then. > > AFAIU, 7z as a program is Free Software on GNU/Linux systems. Not AFAIK. At least fencepost.gnu.org doesn't have 7z, but does have p7zip, which is a shell script. That shell script invokes another shell script, called 7zr, which in turn invokes a program /usr/lib/p7zip/7zr. > - 7zr - a standalone minimal version that only handles 7z archives. > > - p7zip - a gzip like wrapper around 7zr. That's what fencepost has. > The program `p7zip' (a gzip like wrapper) is not suitable for using in > arc-mode.el on GNU/Linux. Why not? Is 7zr suitable? If so, we should use it in preference to 7z. > The difference between programs `7z' and `7za' is not essential: > one of them is just a standalone version of another. That's not what Jason said. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 15:53:15 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 19:53:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfH6w-0003NL-Uh for submit@debbugs.gnu.org; Fri, 08 Jul 2011 15:53:15 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfH6u-0003N6-JZ for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 15:53:12 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LO1005005NITB00@a-mtaout21.012.net.il> for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 22:53:06 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO1005MU5WHTL00@a-mtaout21.012.net.il>; Fri, 08 Jul 2011 22:53:06 +0300 (IDT) Date: Fri, 08 Jul 2011 22:51:07 +0300 From: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support In-reply-to: <877h7s8vmq.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83k4bso8k4.fsf@gnu.org> References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87vcvcn4uw.fsf@gnu.org> <877h7s8vmq.fsf@mail.jurta.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, jasonr@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Juri Linkov > Cc: Eli Zaretskii , 8968@debbugs.gnu.org > Date: Fri, 08 Jul 2011 21:39:27 +0300 > > > All GNU/Linux systems will have only p7zip, as that is the ported > > version of 7-zip. 7z is only available for Windows, and comes with two > > command line binaries - 7za.exe, which is Free Software, and 7z.exe > > which is not (due to unRAR support). > > Does this mean that we should use the binary "7z" on GNU/Linux systems > and "7za" on Windows? I actually think that we should not use 7z of any kind at all, but if we must, then use 7zr on GNU/Linux and 7za on Windows, and offer 7z as a second option. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 16:25:38 2011 Received: (at 8968) by debbugs.gnu.org; 8 Jul 2011 20:25:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfHcE-00049D-Br for submit@debbugs.gnu.org; Fri, 08 Jul 2011 16:25:38 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfHc8-00048w-31 for 8968@debbugs.gnu.org; Fri, 08 Jul 2011 16:25:32 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 71E1E6E8050; Fri, 8 Jul 2011 13:25:22 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4783A451C1A5; Fri, 8 Jul 2011 13:25:21 -0700 (PDT) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support Organization: JURTA References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87tyaw8vqb.fsf@mail.jurta.org> <83liw8o8m4.fsf@gnu.org> Date: Fri, 08 Jul 2011 23:20:43 +0300 In-Reply-To: <83liw8o8m4.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jul 2011 22:49:55 +0300") Message-ID: <878vs8v810.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >> AFAIU, 7z as a program is Free Software on GNU/Linux systems. > > Not AFAIK. At least fencepost.gnu.org doesn't have 7z, but does have > p7zip, which is a shell script. That shell script invokes another > shell script, called 7zr, which in turn invokes a program > /usr/lib/p7zip/7zr. I'd like to find the definitive answer. On fencepost.gnu.org 7z is not installed, but for what reason? I see that p7zip-full.deb contains 7z that handles free archives, and there is a separate p7zip-rar.deb to handle non-free archives. >> The program `p7zip' (a gzip like wrapper) is not suitable for using in >> arc-mode.el on GNU/Linux. > > Why not? `p7zip' is just a gzip like wrapper that just calls `7zr a -si' and `7zr x -so' on stdin/stdout. Such interface is not used in arc-mode.el. > Is 7zr suitable? If so, we should use it in preference to 7z. There are two kinds of functionality where 7z can be used in arc-mode.el: 1. Browse and update archives in the 7z format. I agree that `7zr' should be preferable, and `7z' should be used as a second option when `7zr' is not available. 2. Browse and update zip and other free archives. Only `7z' can be used for this functionality, not `7zr'. >> The difference between programs `7z' and `7za' is not essential: >> one of them is just a standalone version of another. > > That's not what Jason said. Jason said this about Windows. What I see on GNU/Linux is different. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 02:30:33 2011 Received: (at 8968) by debbugs.gnu.org; 9 Jul 2011 06:30:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfR3g-0005oS-HN for submit@debbugs.gnu.org; Sat, 09 Jul 2011 02:30:32 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfR3e-0005oG-9F for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 02:30:31 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LO100G00ZEEZU00@a-mtaout23.012.net.il> for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 09:30:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO100GNPZELXW50@a-mtaout23.012.net.il>; Sat, 09 Jul 2011 09:30:23 +0300 (IDT) Date: Sat, 09 Jul 2011 09:28:24 +0300 From: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support In-reply-to: <878vs8v810.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il To: Juri Linkov Message-id: <83iprcnf1z.fsf@gnu.org> References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87tyaw8vqb.fsf@mail.jurta.org> <83liw8o8m4.fsf@gnu.org> <878vs8v810.fsf@mail.jurta.org> X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) > From: Juri Linkov > Cc: monnier@iro.umontreal.ca, 8968@debbugs.gnu.org > Date: Fri, 08 Jul 2011 23:20:43 +0300 > > >> AFAIU, 7z as a program is Free Software on GNU/Linux systems. > > > > Not AFAIK. At least fencepost.gnu.org doesn't have 7z, but does have > > p7zip, which is a shell script. That shell script invokes another > > shell script, called 7zr, which in turn invokes a program > > /usr/lib/p7zip/7zr. > > I'd like to find the definitive answer. On fencepost.gnu.org > 7z is not installed, but for what reason? I don't have a definitive answer. All I know is that arc-mode could not handle certain archives that I could handle with a 7z.exe downloaded for comparison. I then researched this issue and found out that those archives used a newer format that the Free Software variants of 7z did not support. In particular, the variant installed on fencepost didn't support it. And the reason was that the newer formats used code that wasn't Free Software and whose sources were not available even under non-Free licenses. > 2. Browse and update zip and other free archives. > > Only `7z' can be used for this functionality, not `7zr'. Then perhaps we shouldn't offer 7z at all for this purpose. If we must, it should be a distant second or third alternative to `zip'. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 07:21:08 2011 Received: (at 8968) by debbugs.gnu.org; 9 Jul 2011 11:21:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfVau-0003pf-Nu for submit@debbugs.gnu.org; Sat, 09 Jul 2011 07:21:08 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfVat-0003pJ-FL for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 07:21:08 -0400 Received: by pvh18 with SMTP id 18so1796903pvh.3 for <8968@debbugs.gnu.org>; Sat, 09 Jul 2011 04:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=QhSDEibqufyK54uALPwz2iktRPH3Jvo3b9NQPUWg2Q8=; b=wonXtK+SQhz2Z4fpYfAkCzx8BoiuxvU+u5Y9PKXKccNFcXTtMODPbdv/b55Oc7wmmA p1jqlyjFRS5JRyjF+s/OS7kH1Cuyrnloz/DuT0u9jq4lePle57m2IK4Wol9bVSIAYztP N3qKpBkjScVQqfDhL8vKO7Yc/IfKIm155TR2c= Received: by 10.142.230.20 with SMTP id c20mr827643wfh.357.1310210461408; Sat, 09 Jul 2011 04:21:01 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.18.65]) by mx.google.com with ESMTPS id q5sm6973689pbk.90.2011.07.09.04.20.57 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 04:20:59 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 00628B93; Sat, 9 Jul 2011 19:20:52 +0800 (MYT) From: Jason Rumney To: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87vcvcn4uw.fsf@gnu.org> <877h7s8vmq.fsf@mail.jurta.org> <83k4bso8k4.fsf@gnu.org> Date: Sat, 09 Jul 2011 19:20:52 +0800 In-Reply-To: <83k4bso8k4.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jul 2011 22:51:07 +0300") Message-ID: <87mxgnn1ij.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8968 Cc: Juri Linkov , 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Eli Zaretskii writes: >> From: Juri Linkov >> Cc: Eli Zaretskii , 8968@debbugs.gnu.org >> Date: Fri, 08 Jul 2011 21:39:27 +0300 >> >> > All GNU/Linux systems will have only p7zip, as that is the ported >> > version of 7-zip. 7z is only available for Windows, and comes with two >> > command line binaries - 7za.exe, which is Free Software, and 7z.exe >> > which is not (due to unRAR support). Seems I jumped the gun here. p7zip may be the name of the port, but it also provides 7z and 7za binaries. >> Does this mean that we should use the binary "7z" on GNU/Linux systems >> and "7za" on Windows? > > I actually think that we should not use 7z of any kind at all, but if > we must, then use 7zr on GNU/Linux and 7za on Windows, and offer 7z as > a second option. I suggest to list in the order 7za, 7zr, 7z. 7za is also available as part of the p7zip-full package on Debian derived distributions (at least), so 7zr is only required for systems that only have the minimal p7zip package installed. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 07:26:59 2011 Received: (at 8968) by debbugs.gnu.org; 9 Jul 2011 11:26:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfVgY-0003xR-9R for submit@debbugs.gnu.org; Sat, 09 Jul 2011 07:26:58 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfVgW-0003xF-Sd for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 07:26:57 -0400 Received: by pzk5 with SMTP id 5so2126048pzk.3 for <8968@debbugs.gnu.org>; Sat, 09 Jul 2011 04:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=MTEerJ/9bsrdazgG8T2OHaYW7/m1jRWdChRuZ+e33q8=; b=kxwzGAPYwCRUoRbpPbMzVLK/DmrkAbzcv1fxCMmsslGQiqUxwlcFUF9TJocV8guvup fwtABFOu1ikG3KsmucvDX3ai6hi/miFyxdiiCuIE0ppDiYBF7SI9OLWWrq3rVsS9xNyk AGjgsXpt+lQ7/blxiqQwPq6cXkwNGBRhQxHiQ= Received: by 10.68.49.233 with SMTP id x9mr4417794pbn.62.1310210810780; Sat, 09 Jul 2011 04:26:50 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.18.65]) by mx.google.com with ESMTPS id n8sm6972055pbh.89.2011.07.09.04.26.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 04:26:49 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 056E7B93; Sat, 9 Jul 2011 19:26:43 +0800 (MYT) From: Jason Rumney To: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87tyaw8vqb.fsf@mail.jurta.org> <83liw8o8m4.fsf@gnu.org> Date: Sat, 09 Jul 2011 19:26:43 +0800 In-Reply-To: <83liw8o8m4.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jul 2011 22:49:55 +0300") Message-ID: <87fwmfn18s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8968 Cc: Juri Linkov , 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Eli Zaretskii writes: >> The difference between programs `7z' and `7za' is not essential: >> one of them is just a standalone version of another. > > That's not what Jason said. The non standalone version can load additional external libraries. That is where the non-Free part comes in. Aside from that additional capability, Juri is essentially correct. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 07:35:14 2011 Received: (at 8968) by debbugs.gnu.org; 9 Jul 2011 11:35:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfVoY-0004yd-Hm for submit@debbugs.gnu.org; Sat, 09 Jul 2011 07:35:14 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfVoW-0004yQ-Gp for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 07:35:13 -0400 Received: by pzk5 with SMTP id 5so2128410pzk.3 for <8968@debbugs.gnu.org>; Sat, 09 Jul 2011 04:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/TQIUjw/JcKDD7vgyH/SvbKPP2VSlb/TaI0FeoiVlWI=; b=fT96z9+e1QpSs2wtkLJTcNzZsKtXgH3d3/z9qBnpXyY+xrAbukW+U4mjIWEo2BW4Q7 aPrrCiDnxP7RNeGj7jfPg8pKnR0nt+Rbj+OTowaDjhsFyDg6lGEHDqjag2XxivFaogaz WlN88m8xN0EZKNlrr+rFbQo0evsCW2awWK1y4= Received: by 10.142.152.35 with SMTP id z35mr904561wfd.87.1310211306472; Sat, 09 Jul 2011 04:35:06 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.18.65]) by mx.google.com with ESMTPS id c5sm2540608pbh.62.2011.07.09.04.35.03 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 04:35:05 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 75742B93; Sat, 9 Jul 2011 19:34:59 +0800 (MYT) From: Jason Rumney To: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87tyaw8vqb.fsf@mail.jurta.org> <83liw8o8m4.fsf@gnu.org> <878vs8v810.fsf@mail.jurta.org> <83iprcnf1z.fsf@gnu.org> Date: Sat, 09 Jul 2011 19:34:59 +0800 In-Reply-To: <83iprcnf1z.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Jul 2011 09:28:24 +0300") Message-ID: <878vs7n0v0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8968 Cc: Juri Linkov , 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Eli Zaretskii writes: > I don't have a definitive answer. All I know is that arc-mode could > not handle certain archives that I could handle with a 7z.exe > downloaded for comparison. I then researched this issue and found out > that those archives used a newer format that the Free Software > variants of 7z did not support. Were these archives .rar archives? If so, it is an older format, not a newer one, and not the core format of 7z, just supported for completeness. If not, then this is an issue that I cannot find any information about - perhaps you could point us to the information so we can stop recommending 7-Zip to others. > on fencepost didn't support it. And the reason was that the newer > formats used code that wasn't Free Software and whose sources were not > available even under non-Free licenses. Even the non-Free unRAR source is available, it just comes with unacceptable restrictions on its use. So I'd be interested in what this new format is. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 09:07:20 2011 Received: (at 8968) by debbugs.gnu.org; 9 Jul 2011 13:07:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfXFg-000796-43 for submit@debbugs.gnu.org; Sat, 09 Jul 2011 09:07:20 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfXFc-00078t-Uc for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 09:07:18 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LO200900HK05Q00@a-mtaout21.012.net.il> for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 16:07:06 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO20095LHRS4M60@a-mtaout21.012.net.il>; Sat, 09 Jul 2011 16:07:06 +0300 (IDT) Date: Sat, 09 Jul 2011 16:05:08 +0300 From: Eli Zaretskii Subject: Re: bug#8968: arc-mode 7z writing support In-reply-to: <878vs7n0v0.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Jason Rumney Message-id: <83d3hjob97.fsf@gnu.org> References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87tyaw8vqb.fsf@mail.jurta.org> <83liw8o8m4.fsf@gnu.org> <878vs8v810.fsf@mail.jurta.org> <83iprcnf1z.fsf@gnu.org> <878vs7n0v0.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8968 Cc: juri@jurta.org, 8968@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Jason Rumney > Cc: Juri Linkov , 8968@debbugs.gnu.org > Date: Sat, 09 Jul 2011 19:34:59 +0800 > > Eli Zaretskii writes: > > > I don't have a definitive answer. All I know is that arc-mode could > > not handle certain archives that I could handle with a 7z.exe > > downloaded for comparison. I then researched this issue and found out > > that those archives used a newer format that the Free Software > > variants of 7z did not support. > > Were these archives .rar archives? No, they were "*.7z". From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 18:29:28 2011 Received: (at 8968) by debbugs.gnu.org; 9 Jul 2011 22:29:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfg1f-000051-KS for submit@debbugs.gnu.org; Sat, 09 Jul 2011 18:29:28 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfg1d-0008WV-1w for 8968@debbugs.gnu.org; Sat, 09 Jul 2011 18:29:26 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 7147A6E8053; Sat, 9 Jul 2011 15:29:19 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 808B4451C13F; Sat, 9 Jul 2011 15:29:18 -0700 (PDT) From: Juri Linkov To: Jason Rumney Subject: Re: bug#8968: arc-mode 7z writing support Organization: JURTA References: <87k4c356w6.fsf@mail.jurta.org> <871uy51y7h.fsf@mail.jurta.org> <87mxgpmy40.fsf@mail.jurta.org> <83r561nt9y.fsf@gnu.org> <87vcvcn4uw.fsf@gnu.org> <877h7s8vmq.fsf@mail.jurta.org> <83k4bso8k4.fsf@gnu.org> <87mxgnn1ij.fsf@gnu.org> Date: Sun, 10 Jul 2011 01:27:18 +0300 In-Reply-To: <87mxgnn1ij.fsf@gnu.org> (Jason Rumney's message of "Sat, 09 Jul 2011 19:20:52 +0800") Message-ID: <8762nbf5tk.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8968 Cc: 8968@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > I suggest to list in the order 7za, 7zr, 7z. 7za is also available as > part of the p7zip-full package on Debian derived distributions (at > least), so 7zr is only required for systems that only have the minimal > p7zip package installed. This is my understanding as well. It seems this is what we should do in arc-mode.el now to handle 7z and zip until someone proves that it can be used for non-free formats. BTW, error handling of the non-free RAR format should be more graceful. Currently, trying to browse an incompatible RAR archive with unrar-free displays an uninformative error message: Removing old name: no such file or directory This message is shown by `delete-file' in `archive-rar-extract'. Maybe it should check the presence of the extracted file before trying to delete and display more clear message, e.g. "Your RAR archive format is non-free". Also I don't understand why the command recently added to dired-x.el by http://thread.gmane.org/gmane.emacs.devel/136578 is "unrar x", but in `archive-rar-extract' it's still "unrar-free --extract"? From unknown Sun Jun 22 11:32:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Aug 2011 11:24:17 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator