[Top][All Lists]

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

Re: Find-file at point cannot manage tramp file syntax

From: Michael Albinus
Subject: Re: Find-file at point cannot manage tramp file syntax
Date: Tue, 07 Aug 2012 11:12:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Stéphane Senesi <address@hidden> writes:

> I investigated further. The problem only appears when the path close
> to the point is either an absolute path or a path with a tilde ~ :
>     - using 'emacs -Q', ffap erroneously (?) tries to find the file on
> the local machine, and hence, for the case of an absolute path,
> proposes to truncate the file path to the longest one which matches
> the local file system

What happens, if you apply (require 'tramp) before?

>     - using my settings, I get the behaviour described above
> When discarding from my settings the "(require 'ange-ftp)" that was
> intended to allow for :
>     (setq ange-ftp-skip-msgs (concat ange-ftp-skip-msgs "\\|^500 This
> security scheme is not implemented"))
> I am back to the 'emacs -Q' behaviour

That makes it clear. ange-ftp.el adds its own file name handler, which
does not know of the method in the file name syntax. That's why it
interprets "rsh" as host.

> So, I have only one question left : could/should tramp+ffap interpret
> absolute and tilde path found at the point of a remote file as remote
> paths ?

Yes. But maybe, you need to require Tramp first ...

> Anyway, thanks for the hint on the method.
> Stéphane

Best regards, Michael.

reply via email to

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