From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: laszlomail--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46153: recentf should keep files in most recently used order Date: Thu, 28 Jan 2021 12:37:05 +0000 Message-ID: Reply-To: reporter 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="25528"; mail-complaints-to="usenet@ciao.gmane.io" To: 46153@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 13:38:18 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 1l56Yz-0006X5-3m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 13:38:17 +0100 Original-Received: from localhost ([::1]:48382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l56Yx-0004Ky-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 07:38:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l56Yk-0004Kf-Hg for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 07:38:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l56Yk-0007l0-9G for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 07:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l56Yk-0005a4-6H for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 07:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: reporter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 12:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46153 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.161183744421386 (code B ref -1); Thu, 28 Jan 2021 12:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jan 2021 12:37:24 +0000 Original-Received: from localhost ([127.0.0.1]:47476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l56Y7-0005Yq-Kj for submit@debbugs.gnu.org; Thu, 28 Jan 2021 07:37:23 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l56Y5-0005Yi-9T for submit@debbugs.gnu.org; Thu, 28 Jan 2021 07:37:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l56Y5-0004JI-2G for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 07:37:21 -0500 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]:55117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l56Y3-0007V8-AP for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 07:37:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1611837429; bh=hHm1GkwPuU9G2+0FMKpjR5EdGbSedHkcdqvKpibc7yk=; h=Date:To:From:Reply-To:Subject:From; b=jsywvsM71lSn80qMx5W+qtxxf9kqTJ+DrSTy3zRHdfCkgUAaUWrnm+VF4vyYyEZG5 nVMlSEbLm0+lWrmT5HSjowR61mN1rbNVGyxCug4hX1cYlWnFOgi9JmtWbdaZ1DNE/T Yj6NvRI56HRR+2+rKgRChJ8w6JHK0u4yAdxkjeQU= Received-SPF: pass client-ip=185.70.40.138; envelope-from=laszlomail@protonmail.com; helo=mail-40138.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-ACL-Warn: , reporter Xref: news.gmane.io gmane.emacs.bugs:198789 Archived-At: recentf is very useful for revisiting files, I use it a lot with completion to reopen files. Completion which puts the most recent file first. However, it has a slight problem: it shows the recently opened files, instead of the recently *used* files. For example, if I open files a, b, c, d, e in this order and use them, but in the end I use only files a and b for the last part of my task and want to revisit this files later then recentf provides this list (most recent first): e d c b a But I used a and b last a lot, so it's more likely I want to open those again, so recentf should give me, for example: b a d e c So it should track buffer switches as well and update the recentf list by moving the file corresponding to the current buffer to the beginnining of the list (maybe updating the list from an idle timer if it's costly, there is no need for immediate updates for a long recentf list, I have 2000 files in it). This is much more useful than simply tracking file openings. Other tools also put most recently used files first. Emacs should do the same.