From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 12:03:58 2010 Received: (at submit) by debbugs.gnu.org; 7 Feb 2010 17:03: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 1NeAYA-0000Py-Fu for submit@debbugs.gnu.org; Sun, 07 Feb 2010 12:03:58 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeAY9-0000Po-Iy for submit@debbugs.gnu.org; Sun, 07 Feb 2010 12:03:57 -0500 Received: from mail.gnu.org ([199.232.76.166]:43012 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeAY4-0008VR-Ql for submit@debbugs.gnu.org; Sun, 07 Feb 2010 12:03:53 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeAY2-0000a3-Mo for submit@debbugs.gnu.org; Sun, 07 Feb 2010 12:03:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:44406) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeAY1-0000ZJ-DW for submit@debbugs.gnu.org; Sun, 07 Feb 2010 12:03:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeAY0-0005gp-QW for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:03:48 -0500 Received: from [199.232.76.173] (port=36734 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeAY0-0005gN-AX for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:03:48 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeAXy-0000YX-5T for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:03:47 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5]:54696 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeAXx-0000Xt-PO for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:03:46 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.28.156.cable.starman.ee [82.131.28.156]) by mx1.starman.ee (Postfix) with ESMTP id DF8863F40AD for ; Sun, 7 Feb 2010 19:03:36 +0200 (EET) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 23.1.92; failed to access zip inside zip when not using tramp Organization: JURTA Date: Sun, 07 Feb 2010 19:01:56 +0200 Message-ID: <87vde9m7dn.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.9 (----) 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: -4.9 (----) The fix revno#98570 for bug#4929 (with the subject "failed to access file inside zip archive when using tramp") broke the ability to visit a file in an archive inside another archive. The problem is in the following lines in `archive-extract': ;; Just in case an archive occurs inside another archive. (when (derived-mode-p 'archive-mode) (setq archive-remote t) This means that nested archives are treated as remote files. An example of a patch that fixes this bug for nested archives: === modified file 'lisp/arc-mode.el' --- lisp/arc-mode.el 2010-02-04 18:54:46 +0000 +++ lisp/arc-mode.el 2010-02-07 17:01:18 +0000 @@ -842,7 +842,7 @@ (defun archive-unique-fname (fname dir) "am" "arc-mode.") dir))) - (if (or alien (file-exists-p fullname)) + (if (or alien (not (file-exists-p fullname))) (progn ;; Maked sure all the leading directories in ;; archive-local-name exist under archive-tmpdir, so that But this patch should NOT be installed, because it causes the original remote archive to be overwritten! This is just a demonstration of the logic for nested archives. I currently don't understand the decision to use archive-remote=t for nested archives (this is an old decision), but perhaps they should be distinguished from remote archives with a new variable or a new value of `archive-remote'? -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 16:27:49 2010 Received: (at 5540) by debbugs.gnu.org; 9 Feb 2010 21:27: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 1Nexca-0002qb-Sh for submit@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:49 -0500 Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NexcY-0002qT-IO for 5540@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:47 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.55.178.cable.starman.ee [82.131.55.178]) by mx2.starman.ee (Postfix) with ESMTP id BA9ED3F7E5F for <5540@debbugs.gnu.org>; Tue, 9 Feb 2010 23:27:36 +0200 (EET) From: Juri Linkov To: 5540@debbugs.gnu.org Subject: Re: bug#5540: 23.1.92; failed to access zip inside zip when not using tramp Organization: JURTA References: <87vde9m7dn.fsf@mail.jurta.org> Date: Tue, 09 Feb 2010 23:16:12 +0200 In-Reply-To: <87vde9m7dn.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 07 Feb 2010 19:01:56 +0200") Message-ID: <87ocjy155v.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 5540 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.9 (--) > I currently don't understand the decision to use archive-remote=t > for nested archives (this is an old decision), but perhaps they > should be distinguished from remote archives with a new variable > or a new value of `archive-remote'? Actually for remote archives `archive-remote' is 0 and for nested archives `archive-remote' is t. But this difference doesn't matter. The following patch creates the directories for nested archives: === modified file 'lisp/arc-mode.el' --- lisp/arc-mode.el 2010-02-04 19:54:46 +0000 +++ lisp/arc-mode.el 2010-02-09 21:12:51 +0000 @@ -850,6 +850,11 @@ (defun archive-unique-fname (fname dir) ;; reconstructed in the temporary directory. (make-directory (file-name-directory tmpfile) t) (make-temp-file tmpfile)) + ;; Maked sure all the leading directories in `fullname' exist + ;; under archive-tmpdir. This is necessary for nested archives + ;; (`archive-extract' sets `archive-remote' to t in case + ;; an archive occurs inside another archive). + (make-directory (file-name-directory fullname) t) fullname))) (defun archive-maybe-copy (archive) -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 12 14:51:42 2010 Received: (at 5540-done) by debbugs.gnu.org; 12 Feb 2010 19:51: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 1Ng1YB-0003gE-Sm for submit@debbugs.gnu.org; Fri, 12 Feb 2010 14:51:41 -0500 Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng1Y5-0003fb-MY for 5540-done@debbugs.gnu.org; Fri, 12 Feb 2010 14:51:34 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.93.172.cable.starman.ee [82.131.93.172]) by mx2.starman.ee (Postfix) with ESMTP id 143CF3F40DE for <5540-done@debbugs.gnu.org>; Fri, 12 Feb 2010 21:51:26 +0200 (EET) From: Juri Linkov To: 5540-done@debbugs.gnu.org Subject: Re: bug#5540: 23.1.92; failed to access zip inside zip when not using tramp Organization: JURTA References: <87vde9m7dn.fsf@mail.jurta.org> <87ocjy155v.fsf@mail.jurta.org> Date: Fri, 12 Feb 2010 21:45:17 +0200 In-Reply-To: <87ocjy155v.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 09 Feb 2010 23:16:12 +0200") Message-ID: <87ljey1dok.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 5540-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.9 (--) > The following patch creates the directories for nested archives: > > === modified file 'lisp/arc-mode.el' > --- lisp/arc-mode.el 2010-02-04 19:54:46 +0000 > +++ lisp/arc-mode.el 2010-02-09 21:12:51 +0000 > @@ -850,6 +850,11 @@ (defun archive-unique-fname (fname dir) > ;; reconstructed in the temporary directory. > (make-directory (file-name-directory tmpfile) t) > (make-temp-file tmpfile)) > + ;; Maked sure all the leading directories in `fullname' exist > + ;; under archive-tmpdir. This is necessary for nested archives > + ;; (`archive-extract' sets `archive-remote' to t in case > + ;; an archive occurs inside another archive). > + (make-directory (file-name-directory fullname) t) > fullname))) > > (defun archive-maybe-copy (archive) Installed. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Mon Aug 18 11:17:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 Mar 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator