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 23:37:10 +0800 Message-ID: References: <878tce3yls.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0055a20fc389056464b80b" X-Trace: blaine.gmane.org 1517758605 23652 195.159.176.226 (4 Feb 2018 15:36:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2018 15:36:45 +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 16:36:41 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 1eiML4-0004Vj-A6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 16:36:18 +0100 Original-Received: from localhost ([::1]:34737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiMN5-0006n2-HH for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 10:38:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiMMp-0006hz-69 for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 10:38:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiMMk-0003AR-Db for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 10:38:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49347) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiMMk-0003AH-9a for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 10:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiMMk-0007J9-0F for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 10:38: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 15:38:01 +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.151775863828029 (code B ref 30293); Sun, 04 Feb 2018 15:38:01 +0000 Original-Received: (at 30293) by debbugs.gnu.org; 4 Feb 2018 15:37:18 +0000 Original-Received: from localhost ([127.0.0.1]:57241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiMM2-0007I1-88 for submit@debbugs.gnu.org; Sun, 04 Feb 2018 10:37:18 -0500 Original-Received: from mail-qt0-f171.google.com ([209.85.216.171]:41645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiMM0-0007Hp-JX for 30293@debbugs.gnu.org; Sun, 04 Feb 2018 10:37:17 -0500 Original-Received: by mail-qt0-f171.google.com with SMTP id r13so3286330qtm.8 for <30293@debbugs.gnu.org>; Sun, 04 Feb 2018 07:37:16 -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=QhuLw+yZ4i+aLpTySqnfnLrEzhOeELhpWyCpkOaA7kc=; b=FGtd/bp1P52eWbaYkSNCayTcz54mWAdKi9F6Vk/XOSBBLMCwqBaVLqs2tEPXUA8Fnl SQWEfR1fLAbSLHAodDiwMz+4JoA1+NNhkcxCKw9E5mYdEwL5gkIKTAzryTCfYV+UKMQY 5CXrlpB62xrX0M3Z/ULblg3FGz0eGBud2/E+LDURioqiQLcZGj9VhLAe/YNYcNWzWq+e CDu+DyvJ052mvsdpI0ZQfYsjf1t+0maea5U7kC+oX8fQtMXJYegHfkWxzojBYoZFlu/7 vbdEwKI71VUrTUuytGhiCj8C3PRY8HPmFoEMCfjo0BqWdZqgikOk3yHSYKtvU/gOhJqi SLig== 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=QhuLw+yZ4i+aLpTySqnfnLrEzhOeELhpWyCpkOaA7kc=; b=IWuqSyWk71sBnDDun1e//8auO9CylYXU7wVVpflz8FWZebtSUM7oLZBR4qsJV8IJ2N 1VcssybOydv3yaAroIOkqhwsPzYovhi4RmN/rc0HXNZVhUZ7V30X2wxgNgkd+Bw+ciJz J7QNKWv3KhIbojGPK0qp8KuNxA8ql0AzsoMHp6CMobEXyKQB43zDWtBroiDzU9QzUsB2 52VMV6VR5wadoTfu89zTl2qe4E0U0V+ir6a/H2apIDovpehg87gqD7n8jd7i9Mf+jUc8 HdWlrB/p1R95lpzaTsUQL94930IuMPyfaWMX07qE5MBfrgrJIuCJGbHNI5ooas/pxbZO rMJg== X-Gm-Message-State: AKwxytflhN4qnk006xd7jstlSogNDnTQQko3dk8p2iCfesx+s4V9sIT1 aL6EHJQ85fYtkov5Cthot8FgmTNw1RSYOaVGPsE= X-Google-Smtp-Source: AH8x2257Tv7yE7NOPAFFFzJ8Zb0/B9acC+EG1nJrBBXMM4HUfuTH6uJrWCMLgPVHWhxcHou8/3XTinaLz4YBC9w9LUg= X-Received: by 10.237.52.196 with SMTP id x62mr26228488qtd.112.1517758631099; Sun, 04 Feb 2018 07:37:11 -0800 (PST) Original-Received: by 10.237.58.227 with HTTP; Sun, 4 Feb 2018 07:37:10 -0800 (PST) In-Reply-To: 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:142887 Archived-At: --94eb2c0055a20fc389056464b80b Content-Type: text/plain; charset="UTF-8" The last comment is based on Feb 2 commit. Now I tired Feb4 commit. It works well. No error message would be raised no matter for local folder or local files. Tramp will be triggered to be loaded when I try to open local files. On Sun, Feb 4, 2018 at 10:52 PM, Shuguang Sun wrote: > 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. >> > > --94eb2c0055a20fc389056464b80b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The last comment is based on Feb 2 commit.
=
Now I tired Feb4 commit. It works well. No error message wou= ld be raised no matter for local folder or local files.
Tramp wil= l be triggered to be loaded when I try to open local files.
=

On Sun, Feb 4, 20= 18 at 10:52 PM, Shuguang Sun <shuguang@gmail.com> wrote:
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 und= erstanding 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 supp= orted")".
Sorry not test it last time.
<= br>



On Wed,= Jan 31, 2018 at 10:13 PM, Michael Albinus <michael.albinus@gmx.de> wrote:
Shuguang Sun <shuguang@gmail.com&= gt; 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.


--94eb2c0055a20fc389056464b80b--