unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: Michael Albinus <michael.albinus@gmx.de>, 7583@debbugs.gnu.org
Subject: bug#7583: 23.2; ido loads tramp too eagerly
Date: Tue, 18 Oct 2011 15:04:27 -0400	[thread overview]
Message-ID: <jwvzkgyrw4a.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2hbepo53t.fsf@boostpro.com>

> To e.g "/ssh:" which is an incomplete address 
> and hang indefinitely.
> Just like when you do C-x C-f and enter in prompt /ssh: and press RET.

I'm beginning to understand.  Indeed, I see that C-x C-f /ssh: RET and
C-x C-f /sudo: RET both behave oddly (they try to connect to hosts `ssh'
or `sudo').  They don't hang for me, but arguably they should not even
try to treat the "ssh" or "sudo" as a hostname.

Michael?

>> "vanilla Emacs completion" uses try-completion, so you must thinking of
>> some other "elsewhere".  What is that other "elsewhere"?
> External libraries like anything create completion modes that replace
> most completing-read's.
> So the completing-read that use all-completions are ok, but the one that
> use try-completion are usable only in a vanilla Emacs environment.

So you're saying that Tramp handles try-completion subtly differently from
all-completions and that your completion code uses try-completion
subtly differently from the way vanilla completion uses it.

I wonder if the first pat is indeed true, and if so why (could be that
it was a hack to try and distinguish icomplete/ido from TAB, back when
we didn't have non-essential).

As for the second part, I have no reason to doubt you, tho I'd be
interested to try and understand how it is different and why that
triggers the problem.  My guess is that you're doing something similar
to lightning completion (i.e., roughly, call minibuffer-complete after
every key-press), yet ...

..Oh, wait, I think I see something interesting:

  % emacs -Q
  C-x C-f /ssh: TAB RET RET
  C-x C-f /ssh: TAB

The first C-x C-f just ends up loading Tramp then trying to connect to
`ssh' and fail, but it also changes something inside Tramp because on
the second C-x C-f the TAB causes Tramp to try to connect some "default"
host (apparently it uses the first host in my ~/.ssh/config, and
subsequent attempts will try subsequent hosts in that file).

We don't want that, and your completion scheme might be bumping into
this very problem.

Michael?

> No i say completion in Emacs is made differently so it is acceptable,
> though it should not hang like described above.

I think you're just seeing the result of bugs.


        Stefan





  reply	other threads:[~2011-10-18 19:04 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07 17:38 bug#7583: 23.2; ido loads tramp too eagerly Dave Abrahams
2011-10-16  9:00 ` Michael Albinus
2011-10-19 19:31   ` Dave Abrahams
2011-10-26  8:47     ` Michael Albinus
2011-10-26 18:19       ` Dave Abrahams
2011-10-26 18:27         ` Michael Albinus
2011-10-16 18:31 ` Juanma Barranquero
2011-10-16 19:17   ` Thierry Volpiatto
2011-10-16 19:40     ` Michael Albinus
2011-10-16 21:20       ` Thierry Volpiatto
2011-10-17  6:16         ` Thierry Volpiatto
2011-10-17  7:38           ` Michael Albinus
2011-10-17 13:31           ` Stefan Monnier
2011-10-17 14:18             ` Thierry Volpiatto
2011-10-17 15:44               ` Stefan Monnier
2011-10-17 17:02                 ` Thierry Volpiatto
2011-10-17 19:36                   ` Stefan Monnier
2011-10-18  5:39                     ` Thierry Volpiatto
2011-10-18 13:22                       ` Stefan Monnier
2011-10-18 17:01                         ` Thierry Volpiatto
2011-10-18 19:04                           ` Stefan Monnier [this message]
2011-10-19 10:04                             ` Michael Albinus
2011-10-19 12:49                               ` Stefan Monnier
2011-10-19 20:33                                 ` Michael Albinus
2011-10-20 13:50                           ` Michael Albinus
2011-10-20 14:35                             ` Thierry Volpiatto
2011-10-20 18:22                               ` Michael Albinus
2011-10-20 18:43                                 ` Thierry Volpiatto
2011-10-20 18:40                               ` Stefan Monnier
2011-10-24 10:17                                 ` Michael Albinus
2011-10-27 18:29                                   ` Thierry Volpiatto
2011-10-17 15:10             ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvzkgyrw4a.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=7583@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=thierry.volpiatto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).