GNU bug report logs - #41060
[PATCH] Use write-region when saving recentf file

Previous Next

Package: emacs;

Reported by: philip <at> warpmail.net (Philip K.)

Date: Sun, 3 May 2020 19:15:01 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: philip <at> warpmail.net (Philip K.)
Cc: 41060 <at> debbugs.gnu.org
Subject: Re: bug#41060: [PATCH] Use write-region when saving recentf file
Date: Sat, 08 Aug 2020 14:00:18 +0200
philip <at> warpmail.net (Philip K.) writes:

> I've been playing around with enabling "version-control" for backups,
> and what I have been noticing is that the ~/.emacs.d/recentf file has
> had a lot of backups, far more that regular files that I use. My
> understanding is that this happens because recentf currently uses
> write-file (that in turn uses the backup'ing save-buffer) instead of
> directly writing the temporary buffer to the disk.
>
> This patch does just that, replacing write-file with write-region,
> because I argue that an automatically generated file doesn't need
> backups.

Eli was against it, but Richard was for it, and it does seem
inconsistent with how Emacs does it with other files, so I went ahead
and applied it.

Feel free to revert if anybody strenuously disagrees with this. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 290 days ago.

Previous Next


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