all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: "Michael Albinus" <michael.albinus@gmx.de>,
	"Cédric Chépied" <cedric.chepied@gmail.com>
Cc: 25607@debbugs.gnu.org
Subject: bug#25607: 26.0.50; Ido does not work with tramp anymore
Date: Sat, 4 Feb 2017 02:41:06 +0200	[thread overview]
Message-ID: <ef31fba2-f816-48db-ccd2-ab9117b5ac17@yandex.ru> (raw)
In-Reply-To: <87shnvfin4.fsf@gmx.de>

Hi Michael,

On 03.02.2017 16:34, Michael Albinus wrote:
>> 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?

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.

diff --git a/lisp/ido.el b/lisp/ido.el
index e18464d..2c773b0 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -2541,7 +2541,8 @@ ido-set-common-completion
  (defun ido-complete ()
    "Try and complete the current pattern amongst the file names."
    (interactive)
-  (let (res)
+  (let (non-essential
+        res)
      (cond
       (ido-incomplete-regexp
        ;; Do nothing





  reply	other threads:[~2017-02-04  0:41 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 [this message]
2017-02-05 11:13     ` Michael Albinus
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=ef31fba2-f816-48db-ccd2-ab9117b5ac17@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.