From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5540: 23.1.92; failed to access zip inside zip when not using tramp Date: Sun, 07 Feb 2010 19:01:56 +0200 Organization: JURTA Message-ID: <87vde9m7dn.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265563677 26154 80.91.229.12 (7 Feb 2010 17:27:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 17:27:57 +0000 (UTC) To: 5540@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 18:27:55 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NeAvK-000486-TS for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 18:27:55 +0100 Original-Received: from localhost ([127.0.0.1]:34527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeAvK-0005Z0-Ai for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 12:27:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeAvE-0005Y5-NQ for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:27:48 -0500 Original-Received: from [199.232.76.173] (port=54948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeAvE-0005Xo-E0 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:27:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeAvC-0007Z6-RR for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:27:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38855) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeAvC-0007Yu-HA for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 12:27:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NeAYD-0000QE-U0; Sun, 07 Feb 2010 12:04:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2010 17:04:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5540 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12655622391613 (code B ref -1); Sun, 07 Feb 2010 17:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2010 17:03:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 07 Feb 2010 12:04:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34945 Archived-At: 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/