From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: File name handler for archive files Date: Sat, 09 Dec 2017 15:40:37 +0100 Message-ID: <87efo46k2i.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1512830452 26131 195.159.176.226 (9 Dec 2017 14:40:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2017 14:40:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) To: emacs-devel@gnu.org, tramp-devel@gnu.org Original-X-From: tramp-devel-bounces+get-tramp-devel=m.gmane.org@gnu.org Sat Dec 09 15:40:48 2017 Return-path: Envelope-to: get-tramp-devel@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 1eNgJ4-0006Wb-66 for get-tramp-devel@m.gmane.org; Sat, 09 Dec 2017 15:40:46 +0100 Original-Received: from localhost ([::1]:41599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNgJB-0004lx-C5 for get-tramp-devel@m.gmane.org; Sat, 09 Dec 2017 09:40:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNgJ5-0004kw-8p for tramp-devel@gnu.org; Sat, 09 Dec 2017 09:40:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNgJ4-0006J3-IK for tramp-devel@gnu.org; Sat, 09 Dec 2017 09:40:47 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53014) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNgJ0-0006Cq-5Q; Sat, 09 Dec 2017 09:40:42 -0500 Original-Received: from detlef.gmx.de ([212.91.242.54]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M4Gyx-1fDRmG0Pch-00rt3s; Sat, 09 Dec 2017 15:40:39 +0100 X-Provags-ID: V03:K0:7Cw0kxcg25F/y0SdAqCQRBQ1rX2985jpnahmjmfVjBrscKnQTHS aibNrW6CYqVIJnV4E47w6rw7En3n2pmWoL9pRJCw75T51GYf78UUt32FJwL3T0PqUJ3wu6b pBBJ5ovqKhu54s167245jjZJTw3WAd2TZ7uLvvF6THZ/ADTQo24IJtrirT857OWxnwjF7L9 FSOw9HNlol4M8886I9Y5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:bf4E9byt5Y0=:89E5AsUHMzXPIlK10aUl1b FoHI4EinMmqfTpbXU478EGKC5SaGqPub9LmNFUc2PwgFAiOtbKiAYB8/5s1eaz3X4f5CLtWii rE9FKIim0ttIbFNAMs/vnucrvU7e4Z2+nxyqX2XKLHtb+rYnpwiYILc4yTVe204WipQb5iAfu oJ9oI/LTKJoUKy7WQLNyID7bbYb714cfq860xu73p6454HwzD9DsxSQPYg3uODesl9UBS+BXh iydJLs6WoOTxEbOBi/FVXFC9Sufm+13JsTIiHJkV3PS7U2rWMIH90vmp3TajZHbLGOuAUhPGd lK2AwkDuEro122GnGyYjx22MW16Jb8lDFuLMm2P1pDakvB7iS5anmhSe9LkKkC01RRqr2NNar a+OqNFa1XRoGWCapxARY/LRLZ6X1Yn5/NKUHWXO4R+Z9KFqGVesrLuHLLSnF59yzLS2+18irW M09lD8gC403GhX5aYEdu5kGViUgwt75pjAKLnkra883AvMPlgPaE6WaR2CR7PfnU+ZAUrWb+z mJTcIc99RCTcsbpBu/vNw0xauHR4r81yi9I+tMwBnCVPM8Jug5Oym3tS8r6MbWsbfWkxkiwlP x/jFh4/6zjBszDreb9i1QIspKfX8qPd9oQHS+TFPncEooJWeLEvNjuPMYA1vSTviCHvIYzBqJ deruqlnGwArYWTFM24MzYc/lVq9cxSelBNNd6YnmDWiF5lNanRx7JqQYkUG17eeKRf/VrSNcY /45as1YgPGkGCycmNqW8VyMJknXB8nFiijPDnrMQbzSXT33JBY3Lx9I9mBRH4iHfqN6BHxaa X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tramp-devel-bounces+get-tramp-devel=m.gmane.org@gnu.org Original-Sender: "Tramp-devel" Xref: news.gmane.org gmane.emacs.tramp:9229 gmane.emacs.devel:220819 Archived-At: Hi, it has been requested from time to time in the Emacs ML, so I gave it a try. With commit d338325c2b to the Emacs master repository, I've implemented file name handlers for archive files. Given you have a file /path/to/archive.tar, you can open this now via "C-x C-f /path/to/archive.tar/" in dired mode, seeing all contained files. Note the trailing slash. Opening "C-x C-f /path/to/archive.tar/file" opens a file in that archive. Since the implementation uses Tramp's archive method of tramp-gvfs.el, this works only on machines which run GVFS. Roughly spoken, on GNU/Linux machines. It doesn't work for tar archives only, but also for many other archive formats. And for compressed archives. And for archives located an a remote host. And for archives inside archives. Read (info "(tramp) Archive file names") for the details. As usual, feedback much appreciated! Best regards, Michael.