[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing dired hangs when NFS mount goes AWOL

From: Michael Albinus
Subject: Re: Fixing dired hangs when NFS mount goes AWOL
Date: Fri, 07 Oct 2011 13:43:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> Why would it break Tramp?
>> There was a very long discussion about, see
>> <http://thread.gmane.org/gmane.emacs.devel/87506/focus=87506>
> I know, I participated in that thread.  I fail to see how it answers
> the question.

It was a more general discussion about changing the semantics of
file-remote-p. Caused by a similar problem (remote shares in MS Windows,
which are not responsive).

The discussion went into the direction, that maybe an opposite function,
file-local-p, might be useful. An interesting argument was given by
Andreas Schwab: what about mounted CD-ROMs, or USB devices? Are they
"local" or "remote".

>> Tramp uses file-remote-p internally. OK, this could be replaced by an
>> internal function.
> It depends on whether it uses it right or not.

Whatever is TRT. In this, we disagree.

>> Other packages use it as well, inside and outside core Emacs.
> What does it mean "use it as well"?  In which way are those uses
> incompatible with a file-remote-p which returns non-nil for SSHFS and
> NFS mounts?
>> Not so important for basic file name operations, but needed for all
>> process related things.
> These are the uses which should use something like
> file-accessible-directory-p instead of file-remote-p, right?

A needed functionality is to translate between "local" file names (on
the remote host), and "remote" file names in the sense of Tramp. The
usual implementation is

local -> remote:   (concat (file-remote-p default-directory) filename)
remote -> local:   (file-remote-p filename 'localname)

>         Stefan

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]