[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 2fcaadcf52 040/230: whitespace and comments
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 2fcaadcf52 040/230: whitespace and comments |
Date: |
Sun, 7 Jul 2024 19:00:13 -0400 (EDT) |
branch: elpa/dslide
commit 2fcaadcf52bbdb69e5fe6f4b8080c9f557e46eae
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
whitespace and comments
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
macro-slides.el | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/macro-slides.el b/macro-slides.el
index a7e701ae98..be3851d871 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -168,7 +168,7 @@ The current time will be used as a fallback."
:forward "Forward ➡"
:backward "⬅ Backward"
:contents "Contents ☰"
- :stop "Finished! ■"
+ :stop "Finished! ■" ; TODO stop is not finish
:after-last-slide "No more slides")
"Feedback messages for slide controls.
Turn off by setting to nil. Plist keys:
@@ -533,6 +533,8 @@ the mode and go to slides."
#'ms-display-slides))
(ms-mode 1))))
+;; TODO forward and backward commands are usually only bound in the mode and
+;;shouldn't need to check for the deck being active
;;;###autoload
(defun ms-forward ()
"Advance slideshow forward."
@@ -559,7 +561,8 @@ the mode and go to slides."
(defclass ms-progress-tracking ()
((marker :initform nil :initarg :marker))
- "A utility class for other classes that need a marker.")
+ "A utility class for other classes that track progress.
+Progress is tracked by reading and updating a marker.")
(cl-defgeneric ms-marker (obj))
@@ -1019,8 +1022,6 @@ their init."
(reached-beginning
(user-error "No more previous slides!")))))
-;; TODO handle no-slides condition by skipping to the end
-;; TODO either check for base or ensure it
(cl-defmethod ms--choose-slide ((obj ms-deck) how &optional point)
"Set the current slide, according to HOW.
Optional POINT allows resolving a slide by walking the tree to
@@ -1372,7 +1373,6 @@ NO-RECURSION will avoid descending into children."
(ms-heading obj)
type fun info first-match no-recursion))
-
(cl-defmethod ms-init ((obj ms-action))
(ms-marker obj (org-element-begin (ms-heading obj))))
@@ -1383,6 +1383,7 @@ NO-RECURSION will avoid descending into children."
(when-let ((marker (oref obj marker)))
(set-marker marker nil)))
+;; TODO make a child base class. Section actions don't really need this.
(cl-defmethod ms-forward-child ((obj ms-action))
"Return the next direct child heading and advance the marker.
Marker is moved to the end of the heading if no matching child is
@@ -1402,6 +1403,7 @@ found."
(ms-marker obj (org-element-end (ms-heading obj)))
nil))
+
(cl-defmethod ms-backward-child ((obj ms-action))
"Return previous direct child heading and advance the marker backward.
Marker is moved to the beginning of the heading if no matching
@@ -1420,8 +1422,8 @@ child is found."
child)))))))
(prog1 next
(ms-marker obj (org-element-begin next)))
- (ms-marker obj (org-element-begin (ms-heading obj)))
- nil))
+ (ms-marker obj (org-element-begin (ms-heading obj)))
+ nil))
;; ** Default Slide Action
(defclass ms-action-narrow (ms-action)
@@ -1681,13 +1683,14 @@ stateful-sequence class methods. METHOD-NAME is a
string."
;; For child slides, we make a slide out of the next child heading and
advance
;; our progress forward to the end of that child
(when-let ((child (ms-forward-child obj)))
- ;; TODO this method of getting the parent
+ ;; TODO convert this to a push-sequence call
(ms--make-slide child (oref ms--deck slide))))
(cl-defmethod ms-step-backward ((obj ms-child-action-slide))
;; For child slides, we make a slide out of the previous child heading and
;; advance our progress backward to the beginning of that child
(when-let ((child (ms-backward-child obj)))
+ ;; TODO convert this to a push-sequence call
(ms--make-slide child (oref ms--deck slide))))
;; ** Inline Child Action
@@ -1698,7 +1701,6 @@ stateful-sequence class methods. METHOD-NAME is a
string."
;; TODO round-robin child action
;; TODO every-child action
-;; TODO inherited child actions
;; TODO generalize
;; TODO override the child's own child action
- [nongnu] elpa/dslide 1dbbed70f8 025/230: missing custom group & type, (continued)
- [nongnu] elpa/dslide 1dbbed70f8 025/230: missing custom group & type, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 63d93ec6bf 028/230: Dead code on slide, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 9a67bc2f3e 026/230: line noise, compiler warnings, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 3e7ceb0845 024/230: missing deps, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1d8041aba1 027/230: Sequence (slide) callbacks, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide da4e8dd412 016/230: user error instead of silent failure, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 018b39cfa5 030/230: Remove some coupling between actions and slides, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide b26e0155d8 043/230: base action is abstract, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 027ae16365 046/230: cleaning up some line noise, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e100759664 042/230: remove extraneous slot-bound checks, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2fcaadcf52 040/230: whitespace and comments,
ELPA Syncer <=
- [nongnu] elpa/dslide ea60e6e53e 035/230: prevent animation timer reference from being lost, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide d66218b161 093/230: Inhibit redisplay during babel blocks, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ff39c2f490 087/230: Display strategy, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2aa53d8341 094/230: recenter after opening contents, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide b57afb0da4 122/230: default breadcrumb face to inherit org-level-8, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide bf99a7df69 108/230: attr_methods -> atter_ms, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide aee6f28d4c 103/230: reasonable behavior for `ms-start-from' set to 'point, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 3547b1a1a7 107/230: rearranged demo, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 5956b98172 132/230: :results none in babel. really wish I could let-bind this, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide fe63ace5ca 144/230: empty presentation for test suite, ELPA Syncer, 2024/07/07