From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#49888: 28.0.50; fido-mode not sorting by recency Date: Sun, 15 Aug 2021 13:19:43 +0100 Message-ID: <87fsvax5ls.fsf@gmail.com> References: <1dec2c8a-fc9e-a70c-f236-9b1887ca384f@inventati.org> <87k0kmx5zk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6340"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49888@debbugs.gnu.org To: Manuel Uberti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 15 14:20:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFF7Z-0001R7-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 14:20:09 +0200 Original-Received: from localhost ([::1]:53598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFF7Y-0006Qy-KQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 08:20:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFF7R-0006QO-TG for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:20:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFF7R-0001Dl-Li for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFF7R-0002wy-Hs for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 12:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49888 X-GNU-PR-Package: emacs Original-Received: via spool by 49888-submit@debbugs.gnu.org id=B49888.162902999311322 (code B ref 49888); Sun, 15 Aug 2021 12:20:01 +0000 Original-Received: (at 49888) by debbugs.gnu.org; 15 Aug 2021 12:19:53 +0000 Original-Received: from localhost ([127.0.0.1]:46001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFF7J-0002wY-JU for submit@debbugs.gnu.org; Sun, 15 Aug 2021 08:19:53 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:38464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFF7H-0002wI-J4 for 49888@debbugs.gnu.org; Sun, 15 Aug 2021 08:19:51 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id u16so2587473wrn.5 for <49888@debbugs.gnu.org>; Sun, 15 Aug 2021 05:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Pqq9A79aY5poNlxf+RSsFaNb3Fy/eznI7lliMBH4aNU=; b=F+aMvvsDpOtxd7Tre6/PyccMm0evnTxQyot3CHqBYnFW2Ee9X4tV35yWg+dhspypxO P0aiJOHkR4jyfzpZwi9SEaykyTbaN0OZq7bZHOtEA3GFfvDuiCtOSiBxGJ/HF2Gj0sE0 HewFWM8KYoW6A0etffXCbREBA6a00e4fcCvBhvnISGhoVFNrdKGeFmr5aQgfGAlzoppk o/4hPoJwP//4RHvrGWmNpwuDc0J4PSKdwu7gN1+nblmM24NMlzj7g++CD8PO23wh6Ll+ 71o1aYrUKaz+Wlpadf7UzTH3loDd62dVpBJrbICFLZgnh2b0omH6V842DJWMIPfHPKGE fVhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Pqq9A79aY5poNlxf+RSsFaNb3Fy/eznI7lliMBH4aNU=; b=ABSHRSR4u840tfIjlxLj2RIm/S7EF4BqxXPX86ubaqykYAK7j6YkJmHtjBCZRE6Xza Hk2jjVm+S9GaX3LWeUvxe6+421nvY+glIqRe59htrLzSrDeoHrOsqmTrGAHcvSOCi6jJ jUTaIAvfGxjpJfkWrVYgz2VlKP1nayUMglNZwjctAfrh+pgtPpMFEsxtiytey62YWNK9 KlksuOMRM5jT2qFemyg21HxiZJICMQhP7jGtuPP6w4hzhFn2+OciIuyblV4lP95yZfzD QmtAMDQMwHKRR3sc0kpoQxVrmLd66Kt5C7iKL9Kif7j5QJ8ld00OpvUfQqMXxwD7O+5b g5Kw== X-Gm-Message-State: AOAM530L01Kc3bnq4GUkxlW5yweKuPY1dikgp370hLEZQIsM/l7c4IdW y3OJaWxG3QBQWadoIPtMgevJUul6zC8= X-Google-Smtp-Source: ABdhPJxLHMS30PWkEwzAVyVWqHNgrFEMhHAIFNkexsDMynLcr61/eVKR3q9nDlyMH73hU/+RiBHA2w== X-Received: by 2002:a5d:5085:: with SMTP id a5mr13745760wrt.62.1629029985310; Sun, 15 Aug 2021 05:19:45 -0700 (PDT) Original-Received: from krug (a94-133-27-132.cpe.netcabo.pt. [94.133.27.132]) by smtp.gmail.com with ESMTPSA id r10sm7946389wrp.28.2021.08.15.05.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Aug 2021 05:19:44 -0700 (PDT) In-Reply-To: <87k0kmx5zk.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 15 Aug 2021 13:11:27 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211896 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > Manuel Uberti 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=C3=A3o