* tar file-name-handler
@ 2018-02-02 14:04 Stefan Monnier
2018-02-02 15:35 ` Eli Zaretskii
2018-02-02 15:37 ` Michael Albinus
0 siblings, 2 replies; 11+ messages in thread
From: Stefan Monnier @ 2018-02-02 14:04 UTC (permalink / raw)
To: emacs-devel
I remember an announcement recently that a file-name-handler was now
available for tar archives, and wanted to try it out, but can't seem to
find it.
Did I dream it?
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-02 14:04 tar file-name-handler Stefan Monnier
@ 2018-02-02 15:35 ` Eli Zaretskii
2018-02-02 15:37 ` Michael Albinus
1 sibling, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2018-02-02 15:35 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Fri, 02 Feb 2018 09:04:04 -0500
>
> I remember an announcement recently that a file-name-handler was now
> available for tar archives, and wanted to try it out, but can't seem to
> find it.
>
> Did I dream it?
Not a dream. From NEWS on master:
** Emacs can now visit files in archives as if they were directories.
This feature uses Tramp and works only on systems which support GVFS,
i.e. GNU/Linux, roughly spoken. See the chapter "(tramp) Archive file
names" in the Tramp manual for full documentation of these facilities.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-02 14:04 tar file-name-handler Stefan Monnier
2018-02-02 15:35 ` Eli Zaretskii
@ 2018-02-02 15:37 ` Michael Albinus
2018-02-02 17:35 ` Stefan Monnier
1 sibling, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2018-02-02 15:37 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
Hi Stefan,
> I remember an announcement recently that a file-name-handler was now
> available for tar archives, and wanted to try it out, but can't seem to
> find it.
It's tramp-archive.el. You don't need to configure anything, just do
"C-x C-f /path/to/file.tar/"
> Did I dream it?
No :-)
> Stefan
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-02 15:37 ` Michael Albinus
@ 2018-02-02 17:35 ` Stefan Monnier
2018-02-02 17:45 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2018-02-02 17:35 UTC (permalink / raw)
To: Michael Albinus; +Cc: emacs-devel
> It's tramp-archive.el.
I see it now, thanks. Works like a charm so far.
> You don't need to configure anything, just do
> "C-x C-f /path/to/file.tar/"
Hmm... I had to manually load `tramp` before this worked!
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-02 17:35 ` Stefan Monnier
@ 2018-02-02 17:45 ` Michael Albinus
2018-02-02 19:07 ` Stefan Monnier
0 siblings, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2018-02-02 17:45 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> You don't need to configure anything, just do
>> "C-x C-f /path/to/file.tar/"
>
> Hmm... I had to manually load `tramp` before this worked!
Ahh, yes. I do not add the entry into file-name-handler-alist yet during
autoload. Maybe we could add this, once it has been stabilized.
Have you tried the examples from the Tramp manual?
> Stefan
Best regards, Michael
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-02 17:45 ` Michael Albinus
@ 2018-02-02 19:07 ` Stefan Monnier
2018-02-03 12:25 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2018-02-02 19:07 UTC (permalink / raw)
To: emacs-devel
> Ahh, yes. I do not add the entry into file-name-handler-alist yet during
> autoload. Maybe we could add this, once it has been stabilized.
Maybe adding it right away will help it stabilize?
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-02 19:07 ` Stefan Monnier
@ 2018-02-03 12:25 ` Michael Albinus
2018-02-03 12:36 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2018-02-03 12:25 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Ahh, yes. I do not add the entry into file-name-handler-alist yet during
>> autoload. Maybe we could add this, once it has been stabilized.
>
> Maybe adding it right away will help it stabilize?
Done.
> Stefan
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-03 12:25 ` Michael Albinus
@ 2018-02-03 12:36 ` Eli Zaretskii
2018-02-03 12:52 ` Michael Albinus
2018-02-03 17:54 ` Michael Albinus
0 siblings, 2 replies; 11+ messages in thread
From: Eli Zaretskii @ 2018-02-03 12:36 UTC (permalink / raw)
To: Michael Albinus; +Cc: monnier, emacs-devel
> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Sat, 03 Feb 2018 13:25:43 +0100
> Cc: emacs-devel@gnu.org
>
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
> >> Ahh, yes. I do not add the entry into file-name-handler-alist yet during
> >> autoload. Maybe we could add this, once it has been stabilized.
> >
> > Maybe adding it right away will help it stabilize?
>
> Done.
First problem, unrelated to "stability": visiting a tar file on
MS-Windows now displays an error message:
Error: (user-error "Package `tramp-archive' not supported")
although the archive is parsed correctly. And Tramp is loaded as
result of visiting a Tar file, although it's unneeded and unhelpful.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-03 12:36 ` Eli Zaretskii
@ 2018-02-03 12:52 ` Michael Albinus
2018-02-03 17:54 ` Michael Albinus
1 sibling, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2018-02-03 12:52 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: monnier, emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
Hi Eli,
> First problem, unrelated to "stability": visiting a tar file on
> MS-Windows now displays an error message:
>
> Error: (user-error "Package `tramp-archive' not supported")
>
> although the archive is parsed correctly. And Tramp is loaded as
> result of visiting a Tar file, although it's unneeded and unhelpful.
There is the new test `tramp-archive-test42-delay-load', which shall
check that this doesn't happen. Well, needs improvement. Will do.
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-03 12:36 ` Eli Zaretskii
2018-02-03 12:52 ` Michael Albinus
@ 2018-02-03 17:54 ` Michael Albinus
2018-02-03 19:41 ` Eli Zaretskii
1 sibling, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2018-02-03 17:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: monnier, emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> First problem, unrelated to "stability": visiting a tar file on
> MS-Windows now displays an error message:
>
> Error: (user-error "Package `tramp-archive' not supported")
>
> although the archive is parsed correctly. And Tramp is loaded as
> result of visiting a Tar file, although it's unneeded and unhelpful.
There was an error in `locate-dominating-file', which did expand FILE
even if it wasn't a directory. Due to this, your tar file "foo.tar" was
expanded to "foo.tar/". I've fixed this, and I've also added some code
which shall prevent loading tramp-archive (and the whole Tramp then)
when it doesn't make sense.
Pushed to master.
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tar file-name-handler
2018-02-03 17:54 ` Michael Albinus
@ 2018-02-03 19:41 ` Eli Zaretskii
0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2018-02-03 19:41 UTC (permalink / raw)
To: Michael Albinus; +Cc: monnier, emacs-devel
> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
> Date: Sat, 03 Feb 2018 18:54:25 +0100
>
> > Error: (user-error "Package `tramp-archive' not supported")
> >
> > although the archive is parsed correctly. And Tramp is loaded as
> > result of visiting a Tar file, although it's unneeded and unhelpful.
>
> There was an error in `locate-dominating-file', which did expand FILE
> even if it wasn't a directory. Due to this, your tar file "foo.tar" was
> expanded to "foo.tar/". I've fixed this, and I've also added some code
> which shall prevent loading tramp-archive (and the whole Tramp then)
> when it doesn't make sense.
>
> Pushed to master.
Thanks, works for me.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2018-02-03 19:41 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-02 14:04 tar file-name-handler Stefan Monnier
2018-02-02 15:35 ` Eli Zaretskii
2018-02-02 15:37 ` Michael Albinus
2018-02-02 17:35 ` Stefan Monnier
2018-02-02 17:45 ` Michael Albinus
2018-02-02 19:07 ` Stefan Monnier
2018-02-03 12:25 ` Michael Albinus
2018-02-03 12:36 ` Eli Zaretskii
2018-02-03 12:52 ` Michael Albinus
2018-02-03 17:54 ` Michael Albinus
2018-02-03 19:41 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).