all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: "Cédric Chépied" <cedric.chepied@gmail.com>, 25607@debbugs.gnu.org
Subject: bug#25607: 26.0.50; Ido does not work with tramp anymore
Date: Sun, 05 Feb 2017 12:13:34 +0100	[thread overview]
Message-ID: <87zii07uw1.fsf@gmx.de> (raw)
In-Reply-To: <58933b10.4c861c0a.24b8c.3052@mx.google.com>

Dmitry Gutov <dgutov@yandex.ru> writes:

> Hi Michael,

Hi Dmitry,

>>> emacs -Q
>>> M-x ido-mode
>>> C-x C-f
>>> (Here ido completion works)
>>> Press backspace until you only have 'Find file: /' as prompt
>>> (Here completion still works)
>>> Type sudo:root@localhost:/
>>> (No completion)
>>>
>>> It used to ask sudo password and then completion was working.
>>
>> Likely, the changed behaviour comes from my commit
>> 6653bb45d3697c9372cc77773c49f52399740b51, fixing bug#24947.
>
> This commit may be going in the right direction, but do you know why
> even pressing TAB at the end of the offered scenario doesn't make
> Emacs ask for password?

It's a Tramp feature. When it is in `tramp-completion-mode'
(`non-essential' is an indicator for it), Tramp never opens a new
connection on its own. So it doesn't come to the point the remote end
asks for the password.

> The patch below makes Ido ask for password if I type TAB twice. But
> not after I do that once, which is puzzling. But maybe the function
> uses the completions already completed for the minibuffer, as a kind
> of optimization.

Well, but it still doesn't comlete "/sudo:" and alike.

I made a test with the emacs-25 branch; ido completion behaves
differently, when I use the Tramp libraries from the master branch
there. So looks like I must dig into Tramp for understanding the
differences.

Will do, but it might take time. I'm offline next days.

Best regards, Michael.





  reply	other threads:[~2017-02-05 11:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-02 13:58 bug#25607: 26.0.50; Ido does not work with tramp anymore Cédric Chépied
2017-02-03 14:34 ` Michael Albinus
2017-02-04  0:41   ` Dmitry Gutov
2017-02-05 11:13     ` Michael Albinus [this message]
2017-02-06  0:05       ` Dmitry Gutov
2017-02-12 17:34       ` Michael Albinus
2017-02-13 11:13         ` Dmitry Gutov
2017-02-13 13:04           ` Michael Albinus
2017-02-13 12:00         ` Cédric Chépied
2017-02-13 12:45           ` Michael Albinus
2017-02-13 12:51             ` Cédric Chépied
2017-02-13 12:52             ` Michael Albinus
2017-02-13 12:59               ` Cédric Chépied
2017-02-15 18:55               ` Michael Albinus
2017-02-17  8:02                 ` Cédric Chépied
2017-02-18 13:38                   ` Michael Albinus
2017-02-20  8:34                     ` Cédric Chépied
2017-02-20  8:40                       ` 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

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

  git send-email \
    --in-reply-to=87zii07uw1.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=25607@debbugs.gnu.org \
    --cc=cedric.chepied@gmail.com \
    --cc=dgutov@yandex.ru \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.