[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide bdc16a2b5d 148/230: multiple animation timers
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide bdc16a2b5d 148/230: multiple animation timers |
Date: |
Sun, 7 Jul 2024 19:00:29 -0400 (EDT) |
branch: elpa/dslide
commit bdc16a2b5db823475cc6708d80111121983bfb11
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
multiple animation timers
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
dslide.el | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/dslide.el b/dslide.el
index 482f8582c8..6cd703108f 100644
--- a/dslide.el
+++ b/dslide.el
@@ -400,8 +400,7 @@ See `dslide-base-follows-slide'."
(defvar dslide--debug nil
"Set to t for logging slides and actions.")
-
-(defvar dslide--animation-timer nil)
+(defvar dslide--animation-timers nil)
(defvar-local dslide--animation-overlays nil)
;; Tell the compiler that these variables exist
@@ -2197,7 +2196,7 @@ Everything after BEG will be animated. The region
between BEG
and the value of `point-max' should contain a newline somewhere."
(dslide--ensure-slide-buffer)
(dslide--animation-cleanup)
- (let* ((timer (setq dslide--animation-timer (timer-create)))
+ (let* ((timer (timer-create))
(goal-time (time-add (current-time)
dslide-animation-duration))
(newline-region (save-match-data
@@ -2213,6 +2212,7 @@ and the value of `point-max' should contain a newline
somewhere."
(text-properties-at (car newline-region))
'line-height)
1.0)))
+ (push timer dslide--animation-timers)
(push overlay dslide--animation-overlays)
(timer-set-time timer (current-time)
dslide-animation-frame-duration)
@@ -2231,11 +2231,10 @@ and the value of `point-max' should contain a newline
somewhere."
(overlay-put overlay 'line-height line-height))))
(defun dslide--animation-cleanup ()
- (when dslide--animation-timer
- (cancel-timer dslide--animation-timer))
- (mapc #'delete-overlay dslide--animation-overlays)
- (setq dslide--animation-overlays nil
- dslide--animation-timer nil))
+ (while dslide--animation-timers
+ (cancel-timer (pop dslide--animation-timers)))
+ (while dslide--animation-overlays
+ (delete-overlay (pop dslide--animation-overlays))))
;; * Assorted Implementation Details
- [nongnu] elpa/dslide 31fc027f52 057/230: !temporary basic composition support, (continued)
- [nongnu] elpa/dslide 31fc027f52 057/230: !temporary basic composition support, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 09b9e5bc63 071/230: keep-fill implementation for hiding, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2c515e58d0 127/230: remove redundant actions in demo, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 5cf6e1d521 102/230: option to hide mode line when displaying images, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0087bce96f 082/230: Finished some incomplete parts of the README, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 7e0cf003b0 092/230: don't log feedback messages to the message log, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1472ac4601 137/230: package lint, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide d33205f260 138/230: soft-require hide-mode-line, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide c131653996 139/230: Remove extraneous +1, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 76ff3c1b06 151/230: - dumping off some minor cleanup line noise, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide bdc16a2b5d 148/230: multiple animation timers,
ELPA Syncer <=
- [nongnu] elpa/dslide ccb8064891 152/230: ensure-slide-buffer only displays when not already displayed, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide cd785d24b3 160/230: Override default dbase-end implementation for image action, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 24253f64c0 157/230: introducing reverse-in-place, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide dbcf00d38d 161/230: allow inclusive matching in section mapping, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide df1fca1b87 167/230: animations are set up without restriction, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 659a5d1429 169/230: inline child action overhaul. much better, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 90f9ff272d 175/230: correcting some mininformation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0f123e3638 177/230: Rename DSLIDE_SECTION_ACTIONS -> DSLIDE_ACTIONS, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide fd7acfa477 186/230: fix item reveal progress indication (broken a bit in recent rewrite), ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide afff88a6ca 202/230: Update following buffers even in different frames, ELPA Syncer, 2024/07/07