* Disabling Tramp
@ 2005-03-09 1:21 Guy Gascoigne - Piggford
2005-03-09 6:22 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Guy Gascoigne - Piggford @ 2005-03-09 1:21 UTC (permalink / raw)
Using a build of cvs emacs, is there a simple way to disable tramp? I
just want to use ange-ftp (it was all set up and I really don't want to
bother getting a cygwin ssh up and running on NT) but every time I try
to open a file using something like
/user@host/tmp/foo
I start getting errors about not finding ssh.
And I can't remember if there is a way to unload a module once it's been
required.
Thanks - Guy
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 1:21 Disabling Tramp Guy Gascoigne - Piggford
@ 2005-03-09 6:22 ` Michael Albinus
2005-03-09 8:22 ` Kim F. Storm
2005-03-09 18:41 ` Guy Gascoigne - Piggford
0 siblings, 2 replies; 11+ messages in thread
From: Michael Albinus @ 2005-03-09 6:22 UTC (permalink / raw)
Cc: Emacs Devel
Guy Gascoigne - Piggford <guy@wyrdrune.com> writes:
> Using a build of cvs emacs, is there a simple way to disable tramp? I
> just want to use ange-ftp.
Unloading Tramp wouldn't be sufficient because of the associated
autoloads. Instead of, you might declare this:
(setq tramp-default-method "ftp")
Tramp will pass all file operations to ange-ftp then.
> Thanks - Guy
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 6:22 ` Michael Albinus
@ 2005-03-09 8:22 ` Kim F. Storm
2005-03-09 13:34 ` Kai Großjohann
2005-03-10 6:42 ` Michael Albinus
2005-03-09 18:41 ` Guy Gascoigne - Piggford
1 sibling, 2 replies; 11+ messages in thread
From: Kim F. Storm @ 2005-03-09 8:22 UTC (permalink / raw)
Cc: Emacs Devel
Michael Albinus <michael.albinus@gmx.de> writes:
>> Using a build of cvs emacs, is there a simple way to disable tramp? I
>> just want to use ange-ftp.
>
> Unloading Tramp wouldn't be sufficient because of the associated
> autoloads. Instead of, you might declare this:
>
> (setq tramp-default-method "ftp")
>
> Tramp will pass all file operations to ange-ftp then.
Wouldn't it be good to mention this in etc/NEWS?
BTW, would it be possible to mention _why_ tramp is better than
ange-ftp...?
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 8:22 ` Kim F. Storm
@ 2005-03-09 13:34 ` Kai Großjohann
2005-03-09 14:03 ` Kim F. Storm
2005-03-10 0:41 ` Kevin Rodgers
2005-03-10 6:42 ` Michael Albinus
1 sibling, 2 replies; 11+ messages in thread
From: Kai Großjohann @ 2005-03-09 13:34 UTC (permalink / raw)
storm@cua.dk (Kim F. Storm) writes:
> BTW, would it be possible to mention _why_ tramp is better than
> ange-ftp...?
I think that's difficult because Tramp isn't better. It does a
different job.
Tramp consists of three parts.
One part groks filenames of the form "/method:user@host:/some/file"
and delegates the real work to backends based on the method. As an
added value, you can omit the method, and then it will choose a
default method based on the user and the host. One of the backends it
knows about is ange-ftp.
The second part is a backend which uses smbclient to access the files.
The third part is a backend which uses a remote login program to
access the files.
The added value for using Ange-FTP together with Tramp is that this
provides a unified filename syntax for remote files, regardless of how
the remote system is accessed.
One can remove the Tramp entries from file-name-handler-alist and
re-add the Ange-FTP entries there. But it's also possible to just
type "/ftp:user@host:/some/file" as the filename, or to set
tramp-default-method, as Michael mentioned.
Kai
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 13:34 ` Kai Großjohann
@ 2005-03-09 14:03 ` Kim F. Storm
2005-03-10 0:41 ` Kevin Rodgers
1 sibling, 0 replies; 11+ messages in thread
From: Kim F. Storm @ 2005-03-09 14:03 UTC (permalink / raw)
Cc: emacs-devel
kai@emptydomain.de (Kai Großjohann) writes:
> storm@cua.dk (Kim F. Storm) writes:
>
>> BTW, would it be possible to mention _why_ tramp is better than
>> ange-ftp...?
>
> I think that's difficult because Tramp isn't better. It does a
> different job.
The way I see it, it does the same job (access remote files), but has
more ways (as you mention) to do it than ange-ftp.
> One can remove the Tramp entries from file-name-handler-alist and
> re-add the Ange-FTP entries there. But it's also possible to just
> type "/ftp:user@host:/some/file" as the filename, or to set
> tramp-default-method, as Michael mentioned.
Setting tramp-default-method is cleary the easiest way, so it might
be good to mention just that in NEWS.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 13:34 ` Kai Großjohann
2005-03-09 14:03 ` Kim F. Storm
@ 2005-03-10 0:41 ` Kevin Rodgers
2005-03-11 1:48 ` Richard Stallman
2005-03-13 13:39 ` Kai Großjohann
1 sibling, 2 replies; 11+ messages in thread
From: Kevin Rodgers @ 2005-03-10 0:41 UTC (permalink / raw)
Kai Gro?johann wrote:
> One can remove the Tramp entries from file-name-handler-alist and
> re-add the Ange-FTP entries there. But it's also possible to just
> type "/ftp:user@host:/some/file" as the filename, or to set
> tramp-default-method, as Michael mentioned.
It's generally agreed that the user should be able to enable and disable
features at will. Should Tramp be a global minor mode a la
auto-compression-mode and auto-image-file-mode?
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-10 0:41 ` Kevin Rodgers
@ 2005-03-11 1:48 ` Richard Stallman
2005-03-13 13:39 ` Kai Großjohann
1 sibling, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2005-03-11 1:48 UTC (permalink / raw)
Cc: emacs-devel
It's generally agreed that the user should be able to enable and disable
features at will. Should Tramp be a global minor mode a la
auto-compression-mode and auto-image-file-mode?
There is no general rule that every Emacs feature needs a minor mode
to enable and disable it. Is there sufficient interest in disabling
Tramp to make this worth the trouble (for us and for the users)?
However, I agree it would be good to document *somewhere* how to
do this.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-10 0:41 ` Kevin Rodgers
2005-03-11 1:48 ` Richard Stallman
@ 2005-03-13 13:39 ` Kai Großjohann
2005-03-14 22:31 ` Kevin Rodgers
1 sibling, 1 reply; 11+ messages in thread
From: Kai Großjohann @ 2005-03-13 13:39 UTC (permalink / raw)
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> Kai Gro?johann wrote:
>> One can remove the Tramp entries from file-name-handler-alist and
>> re-add the Ange-FTP entries there. But it's also possible to just
>> type "/ftp:user@host:/some/file" as the filename, or to set
>> tramp-default-method, as Michael mentioned.
>
> It's generally agreed that the user should be able to enable and disable
> features at will. Should Tramp be a global minor mode a la
> auto-compression-mode and auto-image-file-mode?
Disabling Ange-FTP works the same as disabling Tramp: You can remove
the entry from file-name-handler-alist, or you can prefix the filename
with "/:".
Are you mentioning this now because you believe that Tramp is somehow
different? Could you explain what makes it different?
Or is it just a coincidence that you thought of it now?
Kai
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-13 13:39 ` Kai Großjohann
@ 2005-03-14 22:31 ` Kevin Rodgers
0 siblings, 0 replies; 11+ messages in thread
From: Kevin Rodgers @ 2005-03-14 22:31 UTC (permalink / raw)
Kai Gro?johann wrote:
> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>>It's generally agreed that the user should be able to enable and disable
>>features at will. Should Tramp be a global minor mode a la
>>auto-compression-mode and auto-image-file-mode?
>
> Disabling Ange-FTP works the same as disabling Tramp: You can remove
> the entry from file-name-handler-alist, or you can prefix the filename
> with "/:".
>
> Are you mentioning this now because you believe that Tramp is somehow
> different? Could you explain what makes it different?
Not different, just difficult -- as difficult as ange-ftp:
(setq file-name-handler-alist
(delq (rassq 'ange-ftp-hook-function file-name-handler-alist)
file-name-handler-alist))
(setq file-name-handler-alist
(delq (rassq 'ange-ftp-completion-hook-function
file-name-handler-alist)
file-name-handler-alist))
I think users who want to disable ange-ftp would appreciate having that
wrapped in a command, plus a command to re-enable it. And similarly for
Tramp.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 8:22 ` Kim F. Storm
2005-03-09 13:34 ` Kai Großjohann
@ 2005-03-10 6:42 ` Michael Albinus
1 sibling, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2005-03-10 6:42 UTC (permalink / raw)
Cc: Emacs Devel
storm@cua.dk (Kim F. Storm) writes:
>> Tramp will pass all file operations to ange-ftp then.
>
> Wouldn't it be good to mention this in etc/NEWS?
done.
> BTW, would it be possible to mention _why_ tramp is better than
> ange-ftp...?
I believe the NEWS file does it already.
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disabling Tramp
2005-03-09 6:22 ` Michael Albinus
2005-03-09 8:22 ` Kim F. Storm
@ 2005-03-09 18:41 ` Guy Gascoigne - Piggford
1 sibling, 0 replies; 11+ messages in thread
From: Guy Gascoigne - Piggford @ 2005-03-09 18:41 UTC (permalink / raw)
Cc: Emacs Devel
Thank you, that setting did exactly what I wanted.
Guy
Michael Albinus wrote:
>Guy Gascoigne - Piggford <guy@wyrdrune.com> writes:
>
>
>
>>Using a build of cvs emacs, is there a simple way to disable tramp? I
>>just want to use ange-ftp.
>>
>>
>
>Unloading Tramp wouldn't be sufficient because of the associated
>autoloads. Instead of, you might declare this:
>
>(setq tramp-default-method "ftp")
>
>Tramp will pass all file operations to ange-ftp then.
>
>
>
>>Thanks - Guy
>>
>>
>
>Best regards, Michael.
>
>
>_______________________________________________
>Emacs-devel mailing list
>Emacs-devel@gnu.org
>http://lists.gnu.org/mailman/listinfo/emacs-devel
>
>
>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-03-14 22:31 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 1:21 Disabling Tramp Guy Gascoigne - Piggford
2005-03-09 6:22 ` Michael Albinus
2005-03-09 8:22 ` Kim F. Storm
2005-03-09 13:34 ` Kai Großjohann
2005-03-09 14:03 ` Kim F. Storm
2005-03-10 0:41 ` Kevin Rodgers
2005-03-11 1:48 ` Richard Stallman
2005-03-13 13:39 ` Kai Großjohann
2005-03-14 22:31 ` Kevin Rodgers
2005-03-10 6:42 ` Michael Albinus
2005-03-09 18:41 ` Guy Gascoigne - Piggford
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.