all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
To: 42101@debbugs.gnu.org
Subject: bug#42101: icomplete-fido-ret doesn't always use minibuffer-default when input is empty
Date: Sat, 27 Jun 2020 22:59:40 -0700	[thread overview]
Message-ID: <427CB228-0C09-44A0-A684-0A7C2C294487@schwartzmeyer.com> (raw)

Hi,

Funny bug, haven’t figured out the cause. It may be hard to repro.

If you have some amount of minibuffer history, you can cause icomplete-fido-ret to not accept the minibuffer-default. An example is having history such that 'C-h v' when point is on ‘completion-styles’ causes ‘completion-styles-alist’ to be the first history element. Since the minibuffer-default shows ‘completion-styles’ (being that it’s under point, and I’ve not entered any text into the minibuffer), I’d expect RET to choose ‘completion-styles’, but instead it choses ‘completion-styles-alist’ (the head of the presented candidates, ‘completion-styles’ is instead the second candidate).

This repros in fido-mode, but not icomplete-mode. I took a look at the relevant functions called on RET for these modes but am having trouble finding the issue.

I think the root cause is that if minibuffer-default matches a candidate exactly, that candidate should always become the first history element, but this isn’t happening. I’m not sure why; I played around with different completion-styles but that had no effect. Regardless, if there is no input but there is minibuffer-default, various code in icomplete.el suggests that 'minibuffer-complete-and-exit’ should just be called, I don’t know why it’s not happening.

Any ideas?

Thanks,

Andy




             reply	other threads:[~2020-06-28  5:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28  5:59 Andrew Schwartzmeyer [this message]
2020-06-28  6:36 ` bug#42101: Andy Schwartzmeyer
     [not found] ` <handler.42101.B.159332399316501.ack@debbugs.gnu.org>
2020-06-29  1:48   ` bug#42101: Acknowledgement (icomplete-fido-ret doesn't always use minibuffer-default when input is empty) Andrew Schwartzmeyer
2020-06-29 13:52     ` João Távora
2020-06-30  1:41       ` Richard Stallman
2020-06-29 14:00 ` bug#42101: icomplete-fido-ret doesn't always use minibuffer-default when input is empty João Távora
2020-07-04  5:22   ` Andrew Schwartzmeyer
     [not found]     ` <FDB51F0D-4611-4146-BA7A-6FD6AA566442@schwartzmeyer.com>
2020-07-04  9:35       ` João Távora
2020-07-26  4:11         ` Andrew Schwartzmeyer

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=427CB228-0C09-44A0-A684-0A7C2C294487@schwartzmeyer.com \
    --to=andrew@schwartzmeyer.com \
    --cc=42101@debbugs.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.
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.