emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: IDO and TRAMP don't work well together


From: Kim F. Storm
Subject: Re: IDO and TRAMP don't work well together
Date: Tue, 16 Aug 2005 13:45:11 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Matthieu Moy <address@hidden> writes:

> I got in a lot of bugs when using TRAMP + IDO, when I have to specify
> the user name. I guess the bugs are in IDO, not TRAMP (I'm CC-ing the
> author of IDO).
>
> For example:
>
>   $ emacs -q
>   M-x ido-mode RET
>   C-x C-f /ssh:moy@
>
> When I press "@", Emacs tries to open a connection (tramp: Opening
> connection at ssh using nil...) and ends with an error message:
> "tramp: Opening connection at ssh using nil...". It should have waited
> for the hostname.

Sigh...  

The interaction between ido and tramp is very hard to get right.

What ido tries to do is to ask tramp (indirectly via a call to
file-name-all-completions) to provide a list of possible completions
for each step of entering the "tramp prefix".

The problem is that tramp needs to get the partial string in certain
formats for it to do the right thing, and I belive I got it working
quite some time (years) ago, but some later changes to tramp must have
broken it.

I'll see what I can do about it...

In the meantime, you can set ido-enable-tramp-completion to nil.

>
> Second bug:
> If I just do
>
>   C-x C-f /moy@
>
> then Emacs inserts a slash right after the "@". I can't enter the
> hostname.

This happens to me too.  Thanks for noticing it.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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