summaryrefslogtreecommitdiff
path: root/lisp/recentf.el
diff options
context:
space:
mode:
authorPhilip K <philip@warpmail.net>2020-08-08 13:59:03 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-08 13:59:03 +0200
commita8e3b29b2b73292c8497fee8932b04fa07a2c08a (patch)
tree33aeebf47706de6e92cfdd14413d60aa8affe643 /lisp/recentf.el
parent8264e8deaf6d67492964b63bb729ab6fcc350781 (diff)
downloademacs-a8e3b29b2b73292c8497fee8932b04fa07a2c08a.tar.gz
Use write-region when saving recentf file
* lisp/recentf.el (recentf-save-list): Don't generate backups for recentf files (bug#41060).
Diffstat (limited to 'lisp/recentf.el')
-rw-r--r--lisp/recentf.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el
index 27918a9739c..877edd4be1f 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -1289,7 +1289,8 @@ Write data into the file specified by `recentf-save-file'."
(insert "\n \n;; Local Variables:\n"
(format ";; coding: %s\n" recentf-save-file-coding-system)
";; End:\n")
- (write-file (expand-file-name recentf-save-file))
+ (write-region (point-min) (point-max)
+ (expand-file-name recentf-save-file))
(when recentf-save-file-modes
(set-file-modes recentf-save-file recentf-save-file-modes))
nil)