tramp-devel
[Top][All Lists]
Advanced

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

Re: Strange error when doing M-g on a group in Gnus


From: Kai Großjohann
Subject: Re: Strange error when doing M-g on a group in Gnus
Date: Fri, 06 Sep 2002 21:49:46 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Michael Albinus <address@hidden> writes:

> 2 reasons:
>
> - If there is the basic I/O completion called for local files like
>   "/home-local" it shall be expanded for tramp only if requsted. On my
>   machine at work, a genious has created the file
>   "/etc/ssh_known_hosts" with everything reachable around here. If I
>   type "/" and hit <TAB> afterwards, it takes about 1 minute, and then
>   I can choose between ~11.000 host names. ("ssh" as default
>   method). Great.

Good point.  Hm.  I think that method name completion is safe: there
are only a few of them, Tramp has them in main memory, so it's fast.
So in the case that there is no method, you just don't do hostname
completion (nor username completion).

Would that work?

>   Remember the start of this thread: you've typed M-g, and you've
>   never expected any file name completion; it happened behind the
>   scenes. Delay (even for less than 11.000 hosts) wouldn't be
>   acceptable. Response time matters.

Yes.  When I tried user/host completion with your code, it was
instantaneous.  That's why I didn't think that response time might be
a problem.

> - If you type "/ftp:" and <TAB> (your default method is still "ssh")
>   you would expect the "ftp" should be a method, and I should invoke
>   ange-ftp for host name completion. No connection to host "ftp"
>   desired.

Yes, but that's different from the no-colon case and looking for TAB
input events won't help, anyway.

>   If you would type <RET> instead, you really mean "Connect to host
>   ftp by method". No host name completion from ange-ftp expected. How
>   to distinguish?

Does C-x C-f /ftp: RET invoke file-name-all-completions?  I'd be
surprised, but you never know...

> And that's why I check last-input-char. Not the best idea I fear, but
> I haven't seen a more natural way.
>
> Btw, not necessary for XEmacs, because the 2 cases are distinct by
> syntax already.

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)




reply via email to

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