[Top][All Lists]

[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: Michael Albinus
Subject: Re: Strange error when doing M-g on a group in Gnus
Date: 06 Sep 2002 22:56:31 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

address@hidden (Kai =?iso-8859-15?q?Gro=DFjohann?=) writes:

> 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?

Nope. That's the usual (lazy) way applying Tramp: a proper default
method, and explicitly typing a method only if necessary. And so you
wouldn't have user name / host name completion most cases.

> >   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.

That's different indeed, but you need the differentiation as well (I
was too hasty claiming it's needed for non-colon case only).

> >   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...

Deactivate `partial-completion-mode', and activate the 2nd
tramp-message in `tramp-completion-file-name-handler'. You'll be

> > 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

Best regards, Michael.

reply via email to

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