emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/activities e774617fb1 25/50: save: retain last timestam


From: ELPA Syncer
Subject: [elpa] externals/activities e774617fb1 25/50: save: retain last timestamp when buffer and files have not changed
Date: Wed, 25 Dec 2024 03:57:19 -0500 (EST)

branch: externals/activities
commit e774617fb1f55fc57540d958e03b37f3e19878e2
Author: J.D. Smith <jdtsmith@gmail.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    save: retain last timestamp when buffer and files have not changed
---
 activities.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/activities.el b/activities.el
index 2f5448d255..7543540212 100644
--- a/activities.el
+++ b/activities.el
@@ -556,6 +556,12 @@ according to option `activities-always-persist', which 
see)."
       (unless (run-hook-with-args-until-success 
'activities-anti-save-predicates)
         (pcase-let* (((cl-struct activities-activity default last) activity)
                      (new-state (activities-state)))
+         (when (and lastp last
+                    (not (activities--buffers-and-files-differ-p
+                          (activities--buffers-and-files last)
+                          (activities--buffers-and-files new-state))))
+           (setf (map-elt (activities-activity-state-etc new-state) 'time)
+                 (map-elt (activities-activity-state-etc last) 'time)))
           (setf (activities-activity-default activity) (if (or defaultp (not 
default)) new-state default)
                 (activities-activity-last activity) (if (or lastp (not last)) 
new-state last)))))
     ;; Always set the value so, e.g. the activity can be modified



reply via email to

[Prev in Thread] Current Thread [Next in Thread]