* bug#60245: 28.2; recentf: Be able to include directories
@ 2022-12-21 21:14 Drew Adams
2022-12-21 23:02 ` Stephen Berman
0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2022-12-21 21:14 UTC (permalink / raw)
To: 60245
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#60245: 28.2; recentf: Be able to include directories
2022-12-21 21:14 bug#60245: 28.2; recentf: Be able to include directories Drew Adams
@ 2022-12-21 23:02 ` Stephen Berman
2022-12-21 23:09 ` Drew Adams
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Berman @ 2022-12-21 23:02 UTC (permalink / raw)
To: Drew Adams; +Cc: 60245
On Wed, 21 Dec 2022 21:14:20 +0000 Drew Adams <drew.adams@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#60245: 28.2; recentf: Be able to include directories
2022-12-21 23:02 ` Stephen Berman
@ 2022-12-21 23:09 ` Drew Adams
0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2022-12-21 23:09 UTC (permalink / raw)
To: Stephen Berman; +Cc: 60245@debbugs.gnu.org
> > 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-21 23:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-21 21:14 bug#60245: 28.2; recentf: Be able to include directories Drew Adams
2022-12-21 23:02 ` Stephen Berman
2022-12-21 23:09 ` Drew Adams
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).