From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#30293: tramp-error: Package `tramp-archive' not supported on LOCAL folder Date: Sun, 4 Feb 2018 22:52:26 +0800 Message-ID: References: <878tce3yls.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114e70ba12096b0564641897" X-Trace: blaine.gmane.org 1517755899 480 195.159.176.226 (4 Feb 2018 14:51:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2018 14:51:39 +0000 (UTC) Cc: 30293@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 04 15:51:34 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eiLdO-0006xm-Oq for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 15:51:11 +0100 Original-Received: from localhost ([::1]:58360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiLfP-00019z-VE for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 09:53:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiLfG-00018z-AC for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiLfD-0005mg-29 for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:53:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiLfC-0005mW-TJ for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiLfC-00063h-Gp for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Feb 2018 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30293 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30293-submit@debbugs.gnu.org id=B30293.151775595423254 (code B ref 30293); Sun, 04 Feb 2018 14:53:02 +0000 Original-Received: (at 30293) by debbugs.gnu.org; 4 Feb 2018 14:52:34 +0000 Original-Received: from localhost ([127.0.0.1]:56272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiLej-000630-Ms for submit@debbugs.gnu.org; Sun, 04 Feb 2018 09:52:33 -0500 Original-Received: from mail-qk0-f176.google.com ([209.85.220.176]:33499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiLei-00062n-DR for 30293@debbugs.gnu.org; Sun, 04 Feb 2018 09:52:32 -0500 Original-Received: by mail-qk0-f176.google.com with SMTP id c82so1704219qka.0 for <30293@debbugs.gnu.org>; Sun, 04 Feb 2018 06:52:32 -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=kRbBLdWOIcTdC7z7EAAPLE66XxX5Xl1dI+JWBIPXTNU=; b=X19aYXj7TcILn/fu68d+V/Y888eFEVQW+KNsSG89QzRZYXciHKenPkF3wXHAkKL1xt dRRyW9vmLOhjLexPgMMZW9kfzpAsECLz2KcWTB4DPoms/uxnZM3rhNQhOPMrkIpEqh25 bnyfjyYvYp5nyWVYUs698/w29dXHcRuOULWJUoJ8Sv06BPJ40mZMeFvZBtAyc5KEn+gX NpzLEHZxVwGzYYjFZpbAqyoaev+5e+n2QUmob3tXxMJqo5rJtC+kwEQCFHDJ2TLPa5q7 Ouh36DO8HxKJ0bwFkITLVtxNX/yKIPsMC+e3wN/0fnXV7XU1lpuYPnqudtazOSmn1wmW kFJA== 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=kRbBLdWOIcTdC7z7EAAPLE66XxX5Xl1dI+JWBIPXTNU=; b=Dl6tSrN7T+aunw0Zwefnts2446WxcBKbm/20nYjZjHqZ81Ld1XG8a3tGTp+DIQau9r mNspvnaC2MuWpiUDUHgGLThi75TOjCiKW4jnKBF9ue2zqIMkTJ/s8PmU1CXMicObz8K8 XVXlKve75Sm/npycPYY1IEG2UYrGh5cl1zmKhZDHZBNrzyj5G3LSg+IKQW75ApfD3W2n NLi/0g4wB1CDSmWee3RqWSHzZhN3Q5VgpLKSTgZmM96ya+YWmuviUXN+wqgek/T5eVdT TyOm0pgj6zjCfhiPamQQoWJKmQjEGlUeNOJ/Cl0yyd3/XohluZy1loMJXANR2iL/546J DByw== X-Gm-Message-State: AKwxyteAtvqMEv9RJ3UAiMoebnmEh8Oxl2lVL1aKYhZJJVa1rRRSFV0R /4pl0ZOzFCRkfCZwKRMZsuheDLKYUvbAGwxu+XY= X-Google-Smtp-Source: AH8x224GNUuDL4FClr1Lg2xawGFTvZ+CJ5tg4rSIR8CX29E77JbFAMWlW8b/WdOkk5oG2SK45niyJsQVOXKBkhuTk6w= X-Received: by 10.55.87.70 with SMTP id l67mr69124941qkb.319.1517755946892; Sun, 04 Feb 2018 06:52:26 -0800 (PST) Original-Received: by 10.237.58.227 with HTTP; Sun, 4 Feb 2018 06:52:26 -0800 (PST) In-Reply-To: <878tce3yls.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142886 Archived-At: --001a114e70ba12096b0564641897 Content-Type: text/plain; charset="UTF-8" Thanks Michael. What to my supprise is not only the directory (.zip or .tar). The tramp should not be loaded for local folders or files. Is my understanding correct? Now I can open the folde with ext of .zip or .tar. It still trigers the load of tramp. And I try to open a local zip file. The file can be opened however it has the message "Error: (user-error "Package `tramp-archive' not supported")". Sorry not test it last time. On Wed, Jan 31, 2018 at 10:13 PM, Michael Albinus wrote: > Shuguang Sun writes: > > Hi Shuguang, > > > How to reproduce the bug: > > 1. create a Folder named "a.tar" or "a.zip" in local PC > > 2. load tramp > > 3. in dired, press Enter or dired-find-file on "a.tar" or "a.zip" > > 4. it reports: tramp-error: Package `tramp-archive' not supported > > Same here, under GNU/Linux. However, why do you create a directory ("a > folder") with the extension .tar or .zip? These are intended as "file" > name extensions, not for directories. > > Anyway, I've committed a patch to the master branch, which should fix > this. I hope this does not delay file archive operations too much, > because for every single magic file operation I have to check now, > whether the file archive is a directory. > > Could you pls check whether this works for you? > > > Best Regards, > > Shuguang Sun > > Best regards, Michael. > --001a114e70ba12096b0564641897 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Michael.

What to my s= upprise is not only the directory (.zip or .tar). The tramp should not be l= oaded for local folders or files. Is my understanding correct?
Now I can open the folde with ext of .zip or .tar. It still tr= igers the load of tramp.
And I try to open a local zip file.= The file can be opened however it has the message "Error: (user-error= "Package `tramp-archive' not supported")".
Sorry not test it last time.



On W= ed, Jan 31, 2018 at 10:13 PM, Michael Albinus <michael.albinus@gmx.de= > wrote:
Shuguang Sun <<= a href=3D"mailto:shuguang@gmail.com">shuguang@gmail.com> writes:

Hi Shuguang,

> How to reproduce the bug:
> 1. create a Folder named "a.tar" or "a.zip" in loc= al PC
> 2. load tramp
> 3. in dired, press Enter or dired-find-file on "a.tar" or &q= uot;a.zip"
> 4. it reports: tramp-error: Package `tramp-archive' not supported<= br>
Same here, under GNU/Linux. However, why do you create a directory ("a=
folder") with the extension .tar or .zip? These are intended as "= file"
name extensions, not for directories.

Anyway, I've committed a patch to the master branch, which should fix this. I hope this does not delay file archive operations too much,
because for every single magic file operation I have to check now,
whether the file archive is a directory.

Could you pls check whether this works for you?

> Best Regards,
> Shuguang Sun

Best regards, Michael.

--001a114e70ba12096b0564641897--