tramp-devel
[Top][All Lists]
Advanced

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

Re: question about `tramp-file-name-handler'


From: Thierry Volpiatto
Subject: Re: question about `tramp-file-name-handler'
Date: Tue, 29 Jan 2013 10:21:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux)

Hi Michael,

Michael Albinus <address@hidden> writes:

> Thierry Volpiatto <address@hidden> writes:
>
>> Hi Michael,
>
> Hi Thierry,
>
>> I see that in `tramp-file-name-handler' you fall back to
>> `tramp-run-real-handler' when 'suppress is thrown by
>> `tramp-sh-file-name-handler'.
>
> This is meant for operations on files themselves, not for
> `start-file-process'.
Yes, but I am using something like:

(let ((default-directory "/ssh:..."))
  (start-file-process ...)

So I think it is the `tramp-file-name-handler' which is in charge of
handling `default-directory' no ?

>> Here the problem I have with this:
>> The process I run on remote host is "find" shell command.
>>
>> I run quickly on remote:
>>
>> "find process" => "kill this process" => "find process"
>>                   (less than 5s delay)
>>
>> The second "find process" is running now locally (It fallback to
>> `tramp-run-real-handler')
>>
>> So my question is why running `tramp-run-real-handler' when 'suppress is
>> thrown ?
>> Isn't there a better solution ? (possibly with delaying the next call to
>> process?)
>
> I've committed a fix to the repositories. In 
> `tramp-sh-handle-start-file-process'
> the `suppress' event is catched. This shall serve your needs.
Maybe, I will have a look, thanks.

> Let's see, whether there are unexpected side effects.
Ok I will try it as soon as possible.

Thanks.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 



reply via email to

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