unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Alternatives to tramp
Date: Wed, 17 Nov 2010 09:25:57 +1100	[thread overview]
Message-ID: <87vd3waosq.fsf@puma.rapttech.com.au> (raw)
In-Reply-To: mailman.0.1289914222.10225.help-gnu-emacs@gnu.org

Gary <help-gnu-emacs@garydjones.name> writes:

> Tassilo Horn wrote:
>> Gary writes:
>>
>>> I'm absolutely fed up with tramp's inability to play nicely with other
>>> modes.
>>
>> You mean modes that implement alternative completion styles like ido,
>> iswitchb, lusty-explorer, and friends, right?
>
> Not only, but possibly also:
>
> Desktop mode and tiny-desktop (tramp tries to restore the remote
> buffers, but fails because - unsurprisingly - it doesn't have a password
> at startup, so the desktop packages then whine because they could not
> reopen the buffers);
>
> Flymake (see previous posts, although Michael says he has patched things
> since then);
>
> There was at least one other, but I can't recall exactly what it was now.
>
> Anyway. I'm just using scp now. More manual steps, but at least nothing
> complains.
>
>

I suspect you are blaming the wrong culprit. In my experience, tramp has
not been the problem, but rather other modes that do not recognise the 
power of emacs buffers and have a limited expectation regarding the
relationship between buffers, files and resources. In reality, the
problem is not with tramp not playing well with others, but others not
playing well with tramp. I have found that once you adopt this
perspective, resolving issues can be much faster as you look for the
solution from a different perspective.

Even if you use other solutions, such as sshfs or nfs, so that all the
remote files are accessible from within emacs, you will still run into
problems with (probably) the same modes who will also not handle the
situation of non-local resources being unavailable in a graceful manner.

For example, desktop.el - the problem here is not with tramp. The
problem here is with desktop.el attempting to restore references to
remote files that were being accessed via a method that requires
additional information/resources and that additional
information/resource is not available. 

It isn't tramp's failure that it is being asked to open these files
without first having obtained the necessary resources i.e. network,
password etc. Provided you have a network and provided you have setup
things like an ssh agent to handle passwords, this isn't even a problem.
However, if this is not possible for some reason, then surely desktop.el
and friends can be configured not to try and restore buffers that depend
on remote resources that may not always be available?  If not, surely
this is a limitation of these modes and not of tramp? Noting of course
that desktop.el would likely have just as many or more problems if you
were using sshfs or nfs rather than tramp and these methods were
unavailable. 

Of course, it has to be recognised that tramp has moved the goal posts
somewhat. It has made things possible that use to be quite difficult to
configure from within emacs and has made new things possible. Remote
execution of programs/processes for example. There were ways of doing
this in the past, but they tended to be very mode specific and fragile.
Establishing a more consistent standard approach is a good thing, but
will likely take some time to evolve. Likewise, it will also take some
time for many modes, especially those which are not part of the core
emacs distribution, to adjust to these changes and enhancements.
However, my recommendation is that if you have a problem with a mode's
interaction with a tramp based resource, look for ways to adjust that
mode rather than adjust tramp. If none exists, maybe recommend a feature
to the mode author. I've also noticed extremely good responses from
tramp maintainers to requests and assistance, so there is likely help
available to mode authors in updating their modes to play nicely with
tramp. 

Tim

-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2010-11-16 22:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11 12:24 Alternatives to tramp Gary
2010-11-11 12:55 ` Lennart Borgman
2010-11-11 14:10 ` Tassilo Horn
2010-11-16 13:29   ` Gary
2010-11-16 14:56     ` Michael Albinus
2010-11-17  8:47       ` Gary
2010-11-17  9:54         ` Michael Albinus
2010-11-17 11:09           ` Gary
     [not found]           ` <mailman.6.1289992190.31366.help-gnu-emacs@gnu.org>
2010-11-17 13:18             ` Richard Riley
     [not found]   ` <mailman.0.1289914222.10225.help-gnu-emacs@gnu.org>
2010-11-16 22:25     ` Tim X [this message]
2010-11-11 18:02 ` Thierry Volpiatto
2010-11-14 19:39   ` Xavier Maillard
2010-11-20  3:46     ` Andrea Crotti
2010-11-11 19:45 ` Michael Albinus
     [not found] ` <mailman.2.1289504993.29678.help-gnu-emacs@gnu.org>
2010-11-12  1:50   ` Barry Margolin

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vd3waosq.fsf@puma.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@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.
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).