]> git.eshelyaron.com Git - emacs.git/commitdiff
Update files times in multisesssion properly
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 16 Dec 2021 07:05:37 +0000 (08:05 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 16 Dec 2021 07:05:37 +0000 (08:05 +0100)
* lisp/emacs-lisp/multisession.el
(multisession--backend-set-value): Make cached/external files
times match up.

lisp/emacs-lisp/multisession.el

index cc7fc53d03d0eb612c773380f3366c5d2245c6a1..17c9384134c424cda685678fbabcc6879ccd140a 100644 (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)))