From unknown Wed Jun 18 23:17:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46153 <46153@debbugs.gnu.org> To: bug#46153 <46153@debbugs.gnu.org> Subject: Status: recentf should keep files in most recently used order Reply-To: bug#46153 <46153@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:17:45 +0000 retitle 46153 recentf should keep files in most recently used order reassign 46153 emacs submitter 46153 reporter severity 46153 normal tag 46153 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 07:37:23 2021 Received: (at submit) by debbugs.gnu.org; 28 Jan 2021 12:37:24 +0000 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 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 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 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 Date: Thu, 28 Jan 2021 12:37:05 +0000 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= To: "bug-gnu-emacs@gnu.org" From: reporter Subject: recentf should keep files in most recently used order Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch 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-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: reporter Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 09:44:02 2021 Received: (at 46153) by debbugs.gnu.org; 28 Jan 2021 14:44:02 +0000 Received: from localhost ([127.0.0.1]:47663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l58Wg-0000Ox-6f for submit@debbugs.gnu.org; Thu, 28 Jan 2021 09:44:02 -0500 Received: from mail-40135.protonmail.ch ([185.70.40.135]:54576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l58Wd-0000OM-ER for 46153@debbugs.gnu.org; Thu, 28 Jan 2021 09:44:00 -0500 Date: Thu, 28 Jan 2021 14:43:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1611845032; bh=9aaEcSTWVltLSEZyymUau+JVlxJyzqgGYyRTU5JqZBc=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=epXc3M8MxMtF6RUMMiz9fKvMew/pNOC74U1Xmb7YDp1vQoek6OarMkBfrna8lJCvG xWPyzvRuol7PiAexRaxt0NkCVv1UK6YNZUihPKABiYQTLGh0h4zr3yFzZ3kNkEFunH +4AUOqWJHeiV4UmkwdHRvYsfXwVjL9J01b2KzmnY= To: "46153@debbugs.gnu.org" <46153@debbugs.gnu.org> From: reporter Subject: Re: bug#46153: Acknowledgement (recentf should keep files in most recently used order) Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46153 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: reporter Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Apparently, this is all what's needed: (add-hook 'buffer-list-update-hook 'recentf-track-opened-file) So buffer-list-update-hook should be added to recentf-used-hooks in recentf.el =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Thursday, January 28, 2021 1:38 PM, wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 46153@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------- > > 46153: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46153 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 00:47:48 2021 Received: (at 46153) by debbugs.gnu.org; 29 Jan 2021 05:47:48 +0000 Received: from localhost ([127.0.0.1]:50862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5MdI-0004OX-0t for submit@debbugs.gnu.org; Fri, 29 Jan 2021 00:47:48 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5MdG-0004OI-JE for 46153@debbugs.gnu.org; Fri, 29 Jan 2021 00:47:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7lFDUdoSSrAHcqVfva0zTHq6Weq7gyRaCBQ6OqhHVOU=; b=clLurCuUouf4uMkwedmbn4zGKW Vb0XDv14g/AzSCLZU/EfIPjJjW9X+7jzDFQ7NFA/pKBIwaAUa9wD4C9zhZ4rRJTAKy+LZMFUzuuvd K09zSKJQOL6s3AER6hAS9CWWm6VSRxD3KCHecCtRus1XH+rhPgHtv0ki+cUi8x5kjf6g=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5Md7-0008E6-GJ; Fri, 29 Jan 2021 06:47:40 +0100 From: Lars Ingebrigtsen To: reporter Subject: Re: bug#46153: recentf should keep files in most recently used order References: X-Now-Playing: Thee Oh Sees's _Grave Blockers_: "I Am Slow (Demo)" Date: Fri, 29 Jan 2021 06:47:36 +0100 In-Reply-To: (reporter's message of "Thu, 28 Jan 2021 14:43:51 +0000") Message-ID: <87o8h8wayv.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: reporter writes: > Apparently, this is all what's needed: > > (add-hook 'buffer-list-update-hook 'recentf-track-opened-file) > > So buffer-list-update-hook should be added to recentf-used-hooks > in recentf.el Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46153 Cc: "46153@debbugs.gnu.org" <46153@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) reporter writes: > Apparently, this is all what's needed: > > (add-hook 'buffer-list-update-hook 'recentf-track-opened-file) > > So buffer-list-update-hook should be added to recentf-used-hooks > in recentf.el Some people would want the current behaviour, so I don't think doing this by default would be the right thing to do, but I can certainly see people who'd prefer recentf to work in this way. So I've mentioned doing this `add-hook' in the recentf-mode doc string in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 00:47:53 2021 Received: (at control) by debbugs.gnu.org; 29 Jan 2021 05:47:53 +0000 Received: from localhost ([127.0.0.1]:50865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5MdN-0004Or-8m for submit@debbugs.gnu.org; Fri, 29 Jan 2021 00:47:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5MdL-0004OQ-Q6 for control@debbugs.gnu.org; Fri, 29 Jan 2021 00:47:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=my1jl3Rnv8Jhm1+fInjJHyD1uVzBrpoWkvkfT2oVcY4=; b=F2jo2PJB9N+7nn2YkJJBWsJu7y Mj6QiPE+ZPmq2WC000FYeGvQ7UVzLB/mzprwFEEqyWG0kOEa2JdKsi6CTP01lgrH8HwGiWVBYFeLq XHMq+ZHCWUqvrOmuX769a1Qy15LwSZJ1qtgBq7iY9bzCItnVCzt84EzO0huD27W3Iroo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5MdE-0008ED-8Q for control@debbugs.gnu.org; Fri, 29 Jan 2021 06:47:46 +0100 Date: Fri, 29 Jan 2021 06:47:43 +0100 Message-Id: <87mtwswayo.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46153 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 46153 fixed close 46153 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 46153 fixed close 46153 28.1 quit From unknown Wed Jun 18 23:17:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 26 Feb 2021 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator