[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60411: 29.0.60; minibuffer-next-completion skips first candidate whe
From: |
Stefan Monnier |
Subject: |
bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil |
Date: |
Fri, 06 Jan 2023 12:51:41 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> > Then why not change that logic in minibuffer-next-completion to be
>> > smarter about this?
>> I (and Stefan) already tried this, it doesn't seem to be feasible with a
>> small and safe change.
> That's very surprising to hear. AFAIU, it just looks for some special
> text property (in next-completion). So it sounds like a very simple
> breakage of logic, where "next" means "the first one" when you are
> exactly at BOB.
The problem is how to determine "this is the first time". Currently we
encode that information indirectly by the fact that point as at BOB
(and is not on an actual completion).
We could try and add a boolean buffer-local variable to remember if
we've already used `minibuffer-next-completion`. Gregory said he tried
and bumped into further problems. It would arguably be cleaner to do
that (and fix whichever other problem shows up), but I haven't had the
time to look into that.
I suspect in the mean time Gregory's hack might be an OK workaround
(invisible text tends to come with its own problems, so I'd prefer if
we install it conditionally rather than unconditionally, BTW), but
it should have a comment with a FIXME.
Stefan
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, (continued)
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Juri Linkov, 2023/01/07
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Juri Linkov, 2023/01/07
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Gregory Heytings, 2023/01/07
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Juri Linkov, 2023/01/08
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Gregory Heytings, 2023/01/08
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Juri Linkov, 2023/01/12
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil,
Stefan Monnier <=
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Eli Zaretskii, 2023/01/06
- bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil, Gregory Heytings, 2023/01/06