1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Update files times in multisesssion properly

* lisp/emacs-lisp/multisession.el
(multisession--backend-set-value): Make cached/external files
times match up.
This commit is contained in:
Lars Ingebrigtsen 2021-12-16 08:05:37 +01:00
parent ed77d1a8c0
commit 81b589518c

View file

@ -324,6 +324,7 @@ DOC should be a doc string, and ARGS are keywords as applicable to
(create-lockfiles nil)
(temp (make-temp-name file)))
(write-region (point-min) (point-max) temp nil 'silent)
(set-file-times temp time)
(rename-file temp file t)))
(setf (multisession--cached-sequence object) time
(multisession--cached-value object) value)))