unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42101: icomplete-fido-ret doesn't always use minibuffer-default when input is empty
@ 2020-06-28  5:59 Andrew Schwartzmeyer
  2020-06-28  6:36 ` bug#42101: Andy Schwartzmeyer
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andrew Schwartzmeyer @ 2020-06-28  5:59 UTC (permalink / raw)
  To: 42101

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




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-07-26  4:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28  5:59 bug#42101: icomplete-fido-ret doesn't always use minibuffer-default when input is empty Andrew Schwartzmeyer
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

Code repositories for project(s) associated with this public inbox

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

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).