diff options
author | mousebot <mousebot@riseup.net> | 2022-02-12 16:09:02 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-02-12 16:09:02 +0100 |
commit | 82654449e44321313932734126d06150203fbcda (patch) | |
tree | 02a2a6bf791b7f87601e76d7e18227eddd3b31c9 /lisp | |
parent | 0b48cd4b41009d229c3f626e365d670c93ff662c (diff) | |
parent | 53f9b4a580ddb0f04213df020647fe2350cb62e2 (diff) |
Merge branch 'develop' into mpv-play-at-point
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index c1b0b51..4687385 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1362,7 +1362,7 @@ is a no-op." ;; We need to re-schedule for an earlier time (cancel-timer mastodon-tl--timestamp-update-timer) (setq mastodon-tl--timestamp-update-timer - (run-at-time this-update + (run-at-time (time-to-seconds (time-subtract this-update (current-time))) nil ;; don't repeat #'mastodon-tl--update-timestamps-callback (current-buffer) nil))))))) @@ -1415,7 +1415,9 @@ from the start if it is nil." (copy-marker previous-timestamp)) ;; otherwise we are done for now; schedule a new run for when needed (setq mastodon-tl--timestamp-update-timer - (run-at-time mastodon-tl--timestamp-next-update + (run-at-time (time-to-seconds + (time-subtract mastodon-tl--timestamp-next-update + (current-time))) nil ;; don't repeat #'mastodon-tl--update-timestamps-callback buffer nil)))))))) @@ -1465,7 +1467,9 @@ JSON is the data returned from the server." update-function ,update-function) mastodon-tl--timestamp-update-timer (when mastodon-tl--enable-relative-timestamps - (run-at-time mastodon-tl--timestamp-next-update + (run-at-time (time-to-seconds + (time-subtract mastodon-tl--timestamp-next-update + (current-time))) nil ;; don't repeat #'mastodon-tl--update-timestamps-callback (current-buffer) @@ -1495,7 +1499,9 @@ Runs synchronously." ,update-function) mastodon-tl--timestamp-update-timer (when mastodon-tl--enable-relative-timestamps - (run-at-time mastodon-tl--timestamp-next-update + (run-at-time (time-to-seconds + (time-subtract mastodon-tl--timestamp-next-update + (current-time))) nil ;; don't repeat #'mastodon-tl--update-timestamps-callback (current-buffer) |