From: "João Távora" <joaotavora@gmail.com>
To: Manuel Uberti <manuel.uberti@inventati.org>
Cc: 49888@debbugs.gnu.org
Subject: bug#49888: 28.0.50; fido-mode not sorting by recency
Date: Sun, 15 Aug 2021 13:19:43 +0100 [thread overview]
Message-ID: <87fsvax5ls.fsf@gmail.com> (raw)
In-Reply-To: <87k0kmx5zk.fsf@gmail.com> ("João Távora"'s message of "Sun, 15 Aug 2021 13:11:27 +0100")
João Távora <joaotavora@gmail.com> writes:
> Manuel Uberti <manuel.uberti@inventati.org> writes:
>
>> In 'emacs -Q', this is what I did:
>>
>> - M-x savehist-mode RET
>> - M-x fido-mode RET
>> - M-x icomplete-vertical-mode RET
>> - M-x emacs-init-time
>> - C-x p p, pick a Git-versioned directory RET
>> - f, pick the fourth candidate, C-x k RET
>> - M-x now shows pr-ps-file-preview on top
>> - C-x p p, pick the only available project
>> - C-x p f does not offer the previously selected candidate
>>
>> Is it possible to make fido-mode sort the candidates by recency?
>
> I've now taken a look at this. Yes, it is certainly possible and
> desirable _if_ there aren't any other overriding criteria. This has to
> do with the 'flex' completion style. In that style, if anything has
> been input that leads to "flexy" filtering, the default and correct
> behaviour is to sort by completion score.
>
> But if nothing has been input and there are basically no scores, it
> makes sense to fall back to a sensible strategy like the one you
> suggest.
>
> Try this patch. It will fix the M-x case, bugt not the C-x p f or C-x f
> cases unfortunately. Those will be harder to fix.
Actually, I correct that. C-x f will be harder to fix, but C-x p f and
C-x p p RET f work just fine!
So I think I will commit this correction to the flex completion style.
It's indeed extremely useful, especially for C-x p f, which I now also
use a lot.
João
next prev parent reply other threads:[~2021-08-15 12:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-05 13:04 bug#49888: 28.0.50; fido-mode not sorting by recency Manuel Uberti
2021-08-15 8:22 ` João Távora
2021-08-15 8:34 ` Manuel Uberti
2021-08-15 12:11 ` João Távora
2021-08-15 12:19 ` João Távora [this message]
2021-08-15 12:38 ` João Távora
2021-08-15 13:49 ` Manuel Uberti
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=87fsvax5ls.fsf@gmail.com \
--to=joaotavora@gmail.com \
--cc=49888@debbugs.gnu.org \
--cc=manuel.uberti@inventati.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.