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:38:58 +0100 Message-ID: <87bl5yx4pp.fsf@gmail.com> References: <1dec2c8a-fc9e-a70c-f236-9b1887ca384f@inventati.org> <87k0kmx5zk.fsf@gmail.com> <87fsvax5ls.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="18233"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49888-done@debbugs.gnu.org, larsi@gnus.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:40:12 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 1mFFQy-0004VF-Mm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 14:40:12 +0200 Original-Received: from localhost ([::1]:57026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFFQx-0002u1-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 08:40:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFFQp-0002tV-1e for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFFQo-0003aG-Ou for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFFQo-0005gW-Mq for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:40:02 -0400 Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 49888 X-GNU-PR-Package: emacs Mail-Followup-To: 49888@debbugs.gnu.org, joaotavora@gmail.com, manuel.uberti@inventati.org Original-Received: via spool by 49888-done@debbugs.gnu.org id=D49888.162903114821755 (code D ref 49888); Sun, 15 Aug 2021 12:40:02 +0000 Original-Received: (at 49888-done) by debbugs.gnu.org; 15 Aug 2021 12:39:08 +0000 Original-Received: from localhost ([127.0.0.1]:46037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFFPv-0005ep-Ts for submit@debbugs.gnu.org; Sun, 15 Aug 2021 08:39:08 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:37807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFFPt-0005eH-Ss for 49888-done@debbugs.gnu.org; Sun, 15 Aug 2021 08:39:06 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id r6so19778899wrt.4 for <49888-done@debbugs.gnu.org>; Sun, 15 Aug 2021 05:39:05 -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=gyhsflC9YThBfAsJMEp2inuBWY2R76qH9/3Xkpr2Vuk=; b=g5GiYpnfT2H3QCZML5vJhUl03eeAXHmBxrg/3boUFMMq41RHFonoNNebJ9bb/aHyum RWXCzQLwRClNu2yWStJwAw47CMTLfKHy6eVoR6xejn29BcsNWYJNLY5i81HVK7Db1Q26 Sp5ZINOM30pdCY3WEOSSK1G+ADJeGIQrEYjt75DWwievEWKQQfoLyNdf6CmYepqs0igq BztUcyi0PhCYpU5WHp4duQBZkamSRni6oBK9qjbPox3AGRjQoHfFD0j3yajg80hSP2mm JwgHo77p84yy0ausLE0+j8gzVjzvXkNqKfVd+VPjEExDs7QcJqEiuB2R6WhPjqJhgMW3 aBGg== 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=gyhsflC9YThBfAsJMEp2inuBWY2R76qH9/3Xkpr2Vuk=; b=LswRwag/TGrs53ZZu7C1vVID1V4Y+lvGRHNlnjTx2SzRTLFdgFtgpw9rUmzNBoMs4U r2ECwvxRqT10iRZAayFnkZUsvCPf8RcpyZYL459SuhTi36qSWvnKC3fHZ6IXA7BvzGHe aQW6ANMDsRNMjV7xXYas144x3VFQIKOebMkaM0nqJcSBTex2VLogd9/8g/zu8QfQJfDl So0lhE9JitPQQ2bUO3zzfehzUKqPYhPkxUvNoUYMZ7H/xT7hZq9YJFZzsCr325xX2hnf Xkg00rNCMMz2E8ljw1FDJB68AyfmP+rrMIAeQpIAvD1uEUXluoT9DMW9mxIOgMXojvaM YmHw== X-Gm-Message-State: AOAM530pOwABqMQ9YNjU1/PpVBjLUL6G2IHfgSjCNn9XMyDZcA6x2s8B CksN1KmC6USsp4OjRWKTZbI= X-Google-Smtp-Source: ABdhPJwr5F8KjADa/zM6FTH3YaVbH9vIFjnlTiXyy6hM9F84jruk80o0F0SGnNnbL7zYHmCowHsc7Q== X-Received: by 2002:adf:f00d:: with SMTP id j13mr13736793wro.14.1629031140013; Sun, 15 Aug 2021 05:39:00 -0700 (PDT) Original-Received: from krug (a94-133-27-132.cpe.netcabo.pt. [94.133.27.132]) by smtp.gmail.com with ESMTPSA id g6sm664867wmq.14.2021.08.15.05.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Aug 2021 05:38:59 -0700 (PDT) In-Reply-To: <87fsvax5ls.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 15 Aug 2021 13:19:43 +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:211900 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > 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! I've just commited this fix: commit ab23fa4eb22f6557414724769958a63f1c59b49a (HEAD -> master, origin= /master, origin/HEAD) Author: Jo=C3=A3o T=C3=A1vora Date: Sun Aug 15 13:19:59 2021 +0100 =20=20=20=20=20 Sort by recency in flex completion style when no flexy stuff happen= ing There is still the C-x f bug, but that wasn't in your report. You seem to be concerned with M-x and C-x p f (as am I, by the way) That other problem isn't even very well understood by me. C-x f looks for files in a single directory, but minibuffer history has whole paths... I think it deserves a new bug report if anyone really cares. For now I think particular bug report can be closed. If anyone disagrees, let me know. Jo=C3=A3o