[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 31fc027f52 057/230: !temporary basic composition su
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 31fc027f52 057/230: !temporary basic composition support |
Date: |
Sun, 7 Jul 2024 19:00:15 -0400 (EDT) |
branch: elpa/dslide
commit 31fc027f52fff8081a93d1814ca33a7ba98ed57e
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
!temporary basic composition support
Experimenting with sometimes containing the child action within the slide
action. This slight nuance is useful for scripting babel that just needs
to run
on the contents of the parent.
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
macro-slides.el | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/macro-slides.el b/macro-slides.el
index 1fad6ab7b4..42347bc621 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -1193,7 +1193,12 @@ lifecycle. See `ms-default-section-actions'.")
See `ms-default-child-action'.")
(begin
:initform nil :initarg :begin
- :documentation "Marker for retrieving this heading's org element."))
+ :documentation "Marker for retrieving this heading's org element.")
+ (compose
+ :initform nil :initarg :compose
+ :documentation "Run child actions within the slide action.
+This is a temporary solution to support a basic form of action
+composition, Running actions as sequences within other actions."))
"Slides store some local state and delegate behavior to several
functions. The Slide is a stateful node that hydrates around a
heading and stores actions and their states.")
@@ -1246,13 +1251,17 @@ heading and stores actions and their states.")
(cl-defmethod ms-step-backward ((obj ms-slide))
(let ((section-actions (reverse (oref obj section-actions)))
+ (child-action (oref obj child-action))
+ (slide-action (oref obj slide-action))
progress)
;; section display action happens before any section-actions
- (setq progress (or (when-let ((child-action (oref obj child-action)))
- (ms-step-backward child-action))
- (when-let ((display-action
- (oref obj slide-action)))
- (ms-step-backward display-action))))
+
+ (setq progress
+ (if (oref obj compose)
+ (or (when slide-action (ms-step-backward slide-action))
+ (when child-action (ms-step-backward child-action)))
+ (or (when child-action (ms-step-backward child-action))
+ (when slide-action (ms-step-backward slide-action)))))
(while (and (not progress)
section-actions)
(let ((action (pop section-actions)))
- [nongnu] elpa/dslide 618b803f95 067/230: !refactor Telescopio, the parents now call through their children, (continued)
- [nongnu] elpa/dslide 618b803f95 067/230: !refactor Telescopio, the parents now call through their children, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide bdd5fff8d6 064/230: moving some code for packaging, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide a462b0a4ba 062/230: babel blocks should only clear results when configured to do so, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide aed4afd84a 063/230: implement hiding children, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 199bb5b68b 079/230: Properties standardized to MS_ prefix, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ada6553434 080/230: missed a few updates to property names, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide fca6e33a6c 060/230: Properly declare generic methods, reconcile documentation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 4af0c6b990 084/230: Remove vestigal push-* code, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0cbd0b7bab 081/230: Remove vestigal ms-slide-hook, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1d61b6ffc1 083/230: Codify the hooks and lifecycle feedback messages, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 31fc027f52 057/230: !temporary basic composition support,
ELPA Syncer <=
- [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, 2024/07/07