[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 86fb3a7e0d 056/230: Pass an :inline argument to eve
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 86fb3a7e0d 056/230: Pass an :inline argument to every child action |
Date: |
Sun, 7 Jul 2024 19:00:15 -0400 (EDT) |
branch: elpa/dslide
commit 86fb3a7e0d669b1fb7bfed8727210005588efb2c
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
Pass an :inline argument to every child action
Once a parent starts showing children inline, all child actions of all
levels of
children below need to do everything inline
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
macro-slides.el | 31 ++++++++++++++++++++++++-------
1 file changed, 24 insertions(+), 7 deletions(-)
diff --git a/macro-slides.el b/macro-slides.el
index 3aa7c5dd66..1fad6ab7b4 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -1292,6 +1292,7 @@ Many optional ARGS. See code."
;; TODO Consolidate explicit nil indication around whatever is standard
(let* ((begin-position (org-element-begin heading))
(begin (make-marker))
+ (inline (plist-get args :inline))
(slide-action-class (plist-get args :slide-action))
(slide-action-args (plist-get args :slide-action-args))
;; TODO Haven't needed to specify section actions from the parent yet
@@ -1311,6 +1312,8 @@ Many optional ARGS. See code."
"SLIDE_FILTER"
"SLIDE_CLASS")))
+ (args `(:inline ,inline))
+
;; TODO just munged this a bit for explicit nil handling. Might
;; still have precedence wrong. If there is any string set in any
;; property, the default value shouldn't be used.
@@ -1329,11 +1332,13 @@ Many optional ARGS. See code."
(if (consp slide-action-class)
(apply (car slide-action-class)
:begin begin
- (append slide-action-args
+ (append args
+ slide-action-args
(cdr slide-action-class)))
(apply slide-action-class
:begin begin
- slide-action-args))))
+ (append args
+ slide-action-args)))))
;; TODO action arguments might make sense, such as telling nested
;; elements not to animate. It's really hard for them to infer
being
@@ -1348,8 +1353,9 @@ Many optional ARGS. See code."
(mapcar
(lambda (c) (when c
(if (consp c)
- (apply (car c) :begin begin (cdr c))
- (funcall c :begin begin))))
+ (apply (car c) :begin begin
+ (append args (cdr c)))
+ (apply c :begin begin args))))
section-action-classes))
;; TODO Likely some precedence funk here. Copied from above.
@@ -1367,11 +1373,14 @@ Many optional ARGS. See code."
(if (consp child-action-class)
(apply (car child-action-class)
:begin begin
- (append child-action-args
+ (append args
+ child-action-args
(cdr child-action-class)))
(apply child-action-class
:begin begin
- child-action-args))))
+ (append
+ args
+ child-action-args)))))
(filter
(or (ms--filter
@@ -1425,7 +1434,13 @@ Many optional ARGS. See code."
((begin
:initform nil :initarg :begin
:documentation "Marker for beginning of heading. Used to
-re-hydrate the org element for use in mapping over the section etc."))
+re-hydrate the org element for use in mapping over the section etc.")
+ (inline
+ :initform nil
+ :initarg :inline
+ :docuemntation "Draw as if surrounded by other contents.
+This option allows actions that perform some animation to degrade
+to some technique that works with contents above and below."))
"Base class for most slide actions that work on a heading's contents."
:abstract t)
@@ -1849,6 +1864,8 @@ stateful-sequence class methods. METHOD-NAME is a
string."
child-heading
(oref ms--deck slide)
:slide-action #'ms-action-narrow
+ :inline t
+ ;; TODO this won't compose at all
:slide-action-args '(:include-restriction t
:with-children t)
:child-action 'none))
(success (ms-init child)))
- [nongnu] elpa/dslide cdf8d97eb6 198/230: hide non-exporting babel, (continued)
- [nongnu] elpa/dslide cdf8d97eb6 198/230: hide non-exporting babel, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide b95576d460 201/230: Remove flickering caused by animation float / int behavior mismatch, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1f02a2dfc0 205/230: line noise, no-op changes, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f2ef90a2bd 209/230: document various results / exports behaviors in babel demos, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0326d4d115 217/230: Fix mode check for dslide-develop command, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 5d1c50be3d 225/230: Add default to the header face specification, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 4be48e907b 228/230: dslide--overlays now public, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 45e93c645a 223/230: respect customize header option on slide narrow, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide a58924cd8e 031/230: line noise, rearrangement, whitespace, minor tweaks, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 5cce77b4eb 032/230: some readme updates, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 86fb3a7e0d 056/230: Pass an :inline argument to every child action,
ELPA Syncer <=
- [nongnu] elpa/dslide 280b028e11 065/230: !dirty, pre-refactor commit to comment on architecture, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide aea35ee8e7 073/230: line-noise renaming, comments..., ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 3945a6a759 061/230: assorted doc noise and one change to be consistent with docstring, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 3d52359eb9 066/230: Babel blocks can run multiple end, init, and final blocks, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 997fc0905a 106/230: results none is preferable during presentation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2650f33a78 100/230: success & error highlights for babel slides, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide a9052e5ae2 129/230: demo directions a bit more interactive and clear, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 56fde60604 120/230: dslide-contents-header -> dslide-header, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 98c9c95505 099/230: custom implementation of pulse, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 5c4728025e 111/230: dslide-backward -> dslide-presentation-backward, ELPA Syncer, 2024/07/07