unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Alex McGrath" <amk@amk.ie>
To: "help-gnu-emacs" <help-gnu-emacs@gnu.org>
Subject: Icomplete + flex completion + tramp - input is 1 character off
Date: Tue, 13 Oct 2020 16:28:21 +0100 (IST)	[thread overview]
Message-ID: <E1kSMDt-0005h5-3Y@rmmprod07.runbox> (raw)

Hi Emacs-Help,

While using tramp with icomplete and flex, I get the following behaviour when I try to
browse files/folders with C-x C-f

For example If i type in on my keyboard 'hello' the minibuffer will display 'hell' but
once I go back to editing local files it will work as expected. It also seems to start working
again once.

Once there are few enough completion candidates it seems to go back to working as expected, 
as a result I think directories containing a lot of files are the most affected.

I can reproduce it with the following cut down version of my config:
--------
(package-initialize)
(require 'use-package)
(setq use-package-always-defer t)
(use-package minibuffer
  :hook (after-init . minibuffer-depth-indicate-mode) ; recursion depth
  :config
  (setq enable-recursive-minibuffers t)
  (setq completion-styles '(partial-completion flex))
)

(use-package icomplete
  :hook (after-init . icomplete-mode)
  :config
  :bind (:map icomplete-minibuffer-map
              ("TAB" . icomplete-force-complete)
              ("C-n" . icomplete-forward-completions)
              ("C-p" . icomplete-backward-completions)
              ("<return>" . icomplete-force-complete-and-exit!)
              ("RET" . icomplete-force-complete-and-exit!)))

(icomplete-mode)
-------

Thanks!
Alex


             reply	other threads:[~2020-10-13 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13 15:28 Alex McGrath [this message]
2020-10-13 18:36 ` Icomplete + flex completion + tramp - input is 1 character off Michael Albinus
2020-10-13 21:29   ` Alex McGrath
2020-10-14  9:14     ` 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=E1kSMDt-0005h5-3Y@rmmprod07.runbox \
    --to=amk@amk.ie \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).