From: Dmitry Gutov <dgutov@yandex.ru>
To: Michael Albinus <michael.albinus@gmx.de>
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: Mon, 6 Feb 2017 02:05:50 +0200 [thread overview]
Message-ID: <bb847f86-9b91-e26c-d11b-038f9f9a390e@yandex.ru> (raw)
In-Reply-To: <87zii07uw1.fsf@gmx.de>
On 05.02.2017 13:13, Michael Albinus wrote:
>> 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),
Like discussed in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23006#56, this doesn't
make sense to me.
When the user presses C-M-i when typing a remote file name, they most
likely want to be prompted password if the connection is not yet
established. That is as opposed to "idle completion", as explained and
discussed in https://github.com/company-mode/company-mode/issues/462
Based on that discussion, I though you'd improved that already somehow.
> Tramp never opens a new
> connection on its own. So it doesn't come to the point the remote end
> asks for the password.
I'm not sure what "on its own" means here. In some file name completion
contexts, Emacs does ask for a password, and in some (like here, where
it's arguably a bug), doesn't.
>> 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.
It does offer some completions there, but doesn't ask for password until
I type the slash after the colon. Which differs from the default
behavior, indeed.
> 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.
Thank you.
next prev parent reply other threads:[~2017-02-06 0:05 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
2017-02-06 0:05 ` Dmitry Gutov [this message]
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=bb847f86-9b91-e26c-d11b-038f9f9a390e@yandex.ru \
--to=dgutov@yandex.ru \
--cc=25607@debbugs.gnu.org \
--cc=cedric.chepied@gmail.com \
--cc=michael.albinus@gmx.de \
/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.