[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 57838970e8 059/230: Debug feedback when slides chan
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 57838970e8 059/230: Debug feedback when slides change |
Date: |
Sun, 7 Jul 2024 19:00:15 -0400 (EDT) |
branch: elpa/dslide
commit 57838970e86d956bbfee6274881c013262cc5dbe
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
Debug feedback when slides change
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
macro-slides.el | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/macro-slides.el b/macro-slides.el
index 42347bc621..c98eb9326f 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -917,13 +917,15 @@ their init."
switching-to-sibling t)
(setq reached-end t)))))
- (ms--debug current-slide)
- (when ms--debug
- (message "switching-to-parent: %s" switching-to-parent))
- (when next-slide
- (ms--debug next-slide))
+ (unless next-slide
+ (ms--debug current-slide (format "forward: %s" progress)))
(when next-slide
+ (ms--debug next-slide
+ (cond (switching-to-parent "switching to parent")
+ (switching-to-sibling "switching to sibling")
+ (t "switching to child")))
+
(unless switching-to-parent
;; Push a new sequence-callbacks level
(push nil (oref obj sequence-callbacks)))
@@ -1026,13 +1028,15 @@ their init."
switching-to-sibling t)
(setq reached-beginning t)))))
- (ms--debug current-slide)
- (when ms--debug
- (message "switching-to-parent: %s" switching-to-parent))
- (when previous-slide
- (ms--debug previous-slide))
+ (unless previous-slide
+ (ms--debug current-slide (format "forward: %s" progress)))
(when previous-slide
+ (ms--debug previous-slide
+ (cond (switching-to-parent "switching to parent")
+ (switching-to-sibling "switching to sibling")
+ (t "switching to child")))
+
(unless switching-to-parent
;; Push a new sequence-callbacks level
(push nil (oref obj sequence-callbacks)))
@@ -2400,14 +2404,16 @@ and the value of `point-max' should contain a newline
somewhere."
;; * Assorted Implementation Details
-;; TODO Watching actions, results, and slides is way too opaque
-(defun ms--debug (slide)
+(defun ms--debug (slide &optional situation)
(when ms--debug
(let* ((heading (ms-heading slide))
(headline-begin (org-element-begin heading))
(headline-end (or (org-element-contents-begin heading)
- (org-element-end heading))))
- (message "begin: %s heading: %s"
+ (org-element-end heading)))
+ (situation (or situation
+ "ms--debug")))
+ (message "%s begin: %s heading: %s"
+ situation
(marker-position (oref slide begin))
(save-restriction
(widen)
- [nongnu] elpa/dslide 66215639a5 047/230: Image action displays inline images in its init method, (continued)
- [nongnu] elpa/dslide 66215639a5 047/230: Image action displays inline images in its init method, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 27e87a7c6d 003/230: Option to not show author and title in header even when present, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f8aa534207 001/230: Fix compiler warnings. Obsolete functions, too long comment, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e4beb23e57 002/230: Match breadcrumb separator to text properties from previous heading, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 597ed25aa2 022/230: hook cleanup, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 7fbe8db983 005/230: compiler warning, unused variable, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide cb31e38633 041/230: push-restriction uses markers, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1766661399 037/230: comments & whitespace, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 14e4d670f3 045/230: !ugly Support arguments from heading properties =D, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 645c555272 036/230: minor fixes and no-effect changes, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 57838970e8 059/230: Debug feedback when slides change,
ELPA Syncer <=
- [nongnu] elpa/dslide 23cbefa7b8 053/230: clean up begin marker during slide finalization, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ca778812bf 077/230: Start at beginning of heading to implement end, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1fb1a599b7 074/230: Ensure buffer before running forward and backward commands, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 4dcdb243b0 055/230: Copy EIEIO style from transient, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0af6dac584 076/230: contents highlight line, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1a6fe7f61c 068/230: Just some readme and comment updates, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 198a80255b 072/230: move lifecycle & commands to end of package, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f130bedeab 078/230: Update readme, rearrange some demo headlines, bump minor version, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0a59731410 075/230: Navigation from contents to same heading, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide dc5d0b965e 119/230: disinformation cleanup, a few lingering ms symbols, ELPA Syncer, 2024/07/07