GNU bug report logs -
#39189
26.2; recentf should save the list periodically
Previous Next
To reply to this bug, email your comments to 39189 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39189
; Package
emacs
.
(Sun, 19 Jan 2020 10:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ndame <emacsuser <at> freemail.hu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 19 Jan 2020 10:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Currently, recentf saves the recentf list only when emacs exits. Sometimes,
when emacs crashes I lose recently opened files from the list, because
the list is not saved periodically.
Emacs should save the list every 10 minutes or so when the user is idle, so
the recentf list is preserved even if there is a crash.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39189
; Package
emacs
.
(Sun, 19 Jan 2020 21:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 39189 <at> debbugs.gnu.org (full text, mbox):
ndame <emacsuser <at> freemail.hu> writes:
> Currently, recentf saves the recentf list only when emacs exits. Sometimes,
> when emacs crashes I lose recently opened files from the list, because
> the list is not saved periodically.
>
> Emacs should save the list every 10 minutes or so when the user is idle, so
> the recentf list is preserved even if there is a crash.
>
I have the following code in my ~/.emacs.d/init.el:
(defun delayed-recentf-save-list ()
"Save recent files list when Emacs is idle."
(run-with-idle-timer 10 nil 'repeat-recentf-save-list))
(defun repeat-recentf-save-list ()
"Save recent files list when it was changed and Emacs is idle."
(unless (equal recentf-saved-list recentf-list)
(recentf-save-list)
(setq recentf-saved-list recentf-list))
(run-at-time 120 nil 'delayed-recentf-save-list))
(delayed-recentf-save-list)
It saves periodically (every 2 minutes), but only when the list has changed, and it waits until Emacs is idle for 10 seconds.
--
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39189
; Package
emacs
.
(Thu, 23 Jan 2020 01:06:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 39189 <at> debbugs.gnu.org (full text, mbox):
ndame <emacsuser <at> freemail.hu> writes:
> Currently, recentf saves the recentf list only when emacs exits. Sometimes,
> when emacs crashes I lose recently opened files from the list, because
> the list is not saved periodically.
>
> Emacs should save the list every 10 minutes or so when the user is idle, so
> the recentf list is preserved even if there is a crash.
Yes, that would be useful.
I like the semantics of `bookmark-save-flag'. Perhaps we could
implement something more similar to that for recentf.
Best regards,
Stefan Kangas
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Thu, 23 Jan 2020 01:07:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 145 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.