From: Lars Ingebrigtsen Date: Thu, 16 Dec 2021 07:05:37 +0000 (+0100) Subject: Update files times in multisesssion properly X-Git-Tag: emacs-29.0.90~3592^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=81b589518c2e574b084907c7d7fb8e6e5049800b;p=emacs.git Update files times in multisesssion properly * lisp/emacs-lisp/multisession.el (multisession--backend-set-value): Make cached/external files times match up. --- diff --git a/lisp/emacs-lisp/multisession.el b/lisp/emacs-lisp/multisession.el index cc7fc53d03d..17c9384134c 100644 --- a/lisp/emacs-lisp/multisession.el +++ b/lisp/emacs-lisp/multisession.el @@ -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)))