GNU bug report logs - #60245
28.2; recentf: Be able to include directories

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 21 Dec 2022 21:15:02 UTC

Severity: wishlist

Found in version 28.2

To reply to this bug, email your comments to 60245 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#60245; Package emacs. (Wed, 21 Dec 2022 21:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 Dec 2022 21:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 28.2; recentf: Be able to include directories
Date: Wed, 21 Dec 2022 21:14:20 +0000
Enhancement request: Have recentf let you optionally include directories
that you've visited with Dired.  (Currently it seems that the gatekeeper
in the code is basically `buffer-file-name'.)

In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
 of 2022-09-13 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19044
System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2251)

Configured using:
 'configure --with-modules --without-dbus --with-native-compilation
 --without-compress-install CFLAGS=-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
XPM ZLIB

(NATIVE_COMP present but libgccjit not available)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60245; Package emacs. (Wed, 21 Dec 2022 23:03:02 GMT) Full text and rfc822 format available.

Message #8 received at 60245 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 60245 <at> debbugs.gnu.org
Subject: Re: bug#60245: 28.2; recentf: Be able to include directories
Date: Thu, 22 Dec 2022 00:02:47 +0100
On Wed, 21 Dec 2022 21:14:20 +0000 Drew Adams <drew.adams <at> oracle.com> wrote:

> Enhancement request: Have recentf let you optionally include directories
> that you've visited with Dired.  (Currently it seems that the gatekeeper
> in the code is basically `buffer-file-name'.)

FWIW I use the following, suggested long ago by Kevin Rodgers
(https://lists.gnu.org/archive/html/help-gnu-emacs/2004-01/msg00525.html):

(add-hook 'dired-mode-hook
	  (lambda () (when recentf-mode
		       (recentf-add-file default-directory))))

Steve Berman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60245; Package emacs. (Wed, 21 Dec 2022 23:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 60245 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: "60245 <at> debbugs.gnu.org" <60245 <at> debbugs.gnu.org>
Subject: RE: [External] : Re: bug#60245: 28.2; recentf: Be able to include
 directories
Date: Wed, 21 Dec 2022 23:09:03 +0000
> > Enhancement request: Have recentf let you optionally include
> > directories that you've visited with Dired.  (Currently it
> > seems that the gatekeeper in the code is basically `buffer-file-name'.)
> 
> FWIW I use the following, suggested long ago by Kevin Rodgers
> (https://urldefense.com/v3/__https://lists.gnu.org/archive/html/help-gnu-
> emacs/2004-01/msg00525.html__;!!ACWV5N9M2RV99hQ!I8OUv_4GGpM-NU-4syprdTz-
> kiCHPePv0_de0Qgr9k0Axdiq5SN8f0uZupnV6t2yCPad_Bd5BDeQQRQ83IrUJ281$ ):
> 
> (add-hook 'dired-mode-hook
> 	  (lambda () (when recentf-mode
> 		          (recentf-add-file default-directory))))

Good idea. Thx.

Governing that with a user option might be a good idea.
That is, do that systematically, whenever the option
says so, rather than having users opt in by adding such
a hook function.




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 04 Sep 2023 15:08:01 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.