From: Michael Albinus <michael.albinus@gmx.de>
To: emacs-devel@gnu.org, tramp-devel@gnu.org
Subject: File name handler for archive files
Date: Sat, 09 Dec 2017 15:40:37 +0100 [thread overview]
Message-ID: <87efo46k2i.fsf@gmx.de> (raw)
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.
next reply other threads:[~2017-12-09 14:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-09 14:40 Michael Albinus [this message]
2017-12-09 15:37 ` File name handler for archive files Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efo46k2i.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=tramp-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.