diff options
author | Philip K <philip@warpmail.net> | 2020-08-08 13:59:03 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-08 13:59:03 +0200 |
commit | a8e3b29b2b73292c8497fee8932b04fa07a2c08a (patch) | |
tree | 33aeebf47706de6e92cfdd14413d60aa8affe643 /lisp/recentf.el | |
parent | 8264e8deaf6d67492964b63bb729ab6fcc350781 (diff) | |
download | emacs-a8e3b29b2b73292c8497fee8932b04fa07a2c08a.tar.gz emacs-a8e3b29b2b73292c8497fee8932b04fa07a2c08a.tar.bz2 emacs-a8e3b29b2b73292c8497fee8932b04fa07a2c08a.zip |
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.el | 3 |
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) |