[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Atomic file replacement in Emacs
From: |
Zhu Zihao |
Subject: |
Re: Atomic file replacement in Emacs |
Date: |
Thu, 22 Oct 2020 14:35:40 +0800 |
User-agent: |
mu4e 1.4.13; emacs 27.1 |
This looks good, but there's still a question.
`file-precious-flag` is handled by `basic-save-buffer`. This is a large
function designed for daily save usage, it will touch recentf and vc.
But for a cache/persistent file, we don't want to make big noise, we
just want to save it silently. We may need something like
(write-region nil nil "XXXX" nil nil)
Can we simplify this case?
Andreas Schwab writes:
> There is already file-precious-flag.
>
> Andreas.
--
Retrieve my public GPG key: https://meta.sr.ht/~citreu.pgp
Zihao
signature.asc
Description: PGP signature