[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 1a8cc52ac6 178/230: ! minor hack to support hacky h
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 1a8cc52ac6 178/230: ! minor hack to support hacky hidden babel from demo |
Date: |
Sun, 7 Jul 2024 19:00:34 -0400 (EDT) |
branch: elpa/dslide
commit 1a8cc52ac647b6545a315f098325f686f01c01e5
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
! minor hack to support hacky hidden babel from demo
Likely just going to bake hiding into the configuration API and get rid of
this
style because of it's challenges regardling lifecycle
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
dslide.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/dslide.el b/dslide.el
index c97ec26140..ca93f4e57e 100644
--- a/dslide.el
+++ b/dslide.el
@@ -1629,11 +1629,17 @@ Child headings become independent slides.")
(cl-defmethod dslide-end ((obj dslide-slide-action-child))
(dslide-marker obj (org-element-property :end (dslide-heading obj)))
- (if-let ((child (dslide-child-previous obj)))
- (let ((child (dslide--make-slide child (oref dslide--deck slide))))
- (oset obj child child)
- (dslide-end child))
- (dslide-narrow obj)))
+ (let ((point-min (point-min))
+ (point-max (point-max)))
+ ;; TODO existing hidden babel kind of a hack
+ (if-let ((child (dslide-child-previous obj)))
+ (let ((child (dslide--make-slide child (oref dslide--deck slide))))
+ (oset obj child child)
+ (dslide-end child)
+ (when (and (= point-min (point-min))
+ (= point-max (point-max)))
+ (dslide-narrow obj)))
+ (dslide-narrow obj))))
(cl-defmethod dslide-final :after ((obj dslide-slide-action-child))
(when-let ((child (oref obj child)))
- [nongnu] elpa/dslide 27b91284da 154/230: contents updates the progress indication, (continued)
- [nongnu] elpa/dslide 27b91284da 154/230: contents updates the progress indication, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ec3bf9ec88 164/230: ! ditch :after in child action end method, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ded3c2cbb2 166/230: important animation math fix, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide c48dc05cb6 168/230: set up animation before changing buffer restriction, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 8c57337331 170/230: default to starting at point, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 9687c5e329 171/230: when viewing contents, place cursor at beginning of root heading, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 48bd59bdde 172/230: image action delegates to begin to display images, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 6a8897f592 174/230: version 0.4.0, some breaking changes, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 009d938a11 173/230: default include-linked to nil, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide fa919adc26 180/230: Bumping version to 0.5.0, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1a8cc52ac6 178/230: ! minor hack to support hacky hidden babel from demo,
ELPA Syncer <=
- [nongnu] elpa/dslide 32547dbe24 176/230: Remove child actions (pretty major refactor), ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f9a1c47bf7 179/230: Get rid of redundant parent slot on slides, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 7784e7ad06 183/230: introducing every-child slide action, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide c9eeb66a9e 187/230: No-header slide action was incorrect in the demo, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 20c4a44f18 184/230: line noise, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 09b750ae6c 189/230: attempted to clean up some misinformation and update recommendations, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ef1421cb82 190/230: Version 0.5.1, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f529a1ed6b 193/230: Video url, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ed197cf5cc 191/230: Finalize the current slide before displaying contents, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide baedd89de4 195/230: macro expansion was creating an unused expression, ELPA Syncer, 2024/07/07