[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 92b39b410f 131/230: interesting bug in custom actio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 92b39b410f 131/230: interesting bug in custom action |
Date: |
Sun, 7 Jul 2024 19:00:25 -0400 (EDT) |
branch: elpa/dslide
commit 92b39b410fb100cacbf5bc6d13c3bb2e4b025b0d
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
interesting bug in custom action
Due to editing this by hand, I accidentally did not include the if
expression in
the when-let expression. As a result, the if could return t forever,
meaning it
was impossible to back up before this custom action.
Return values are sensitive. No way to protect the user from it except to
hammer that fact home.
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
README.org | 14 +++++++-------
test/demo.org | 4 ++--
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/README.org b/README.org
index 56d442ed65..5538ee0441 100644
--- a/README.org
+++ b/README.org
@@ -196,13 +196,13 @@ The ~dslide-section-next~ and ~dslide-section-previous~
method documentation ar
(cl-defmethod dslide-backward ((obj dslide-action-red-paragraphs))
(when-let* ((overlay (pop (oref obj overlays))))
- (delete-overlay overlay))
- ;; If there is a preceding overlay, move to its beginning else move to the
- ;; beginning of the heading.
- (if-let ((overlay (car (oref obj overlays))))
- (prog1 t
- (dslide-marker obj (overlay-start overlay)))
- (dslide-marker obj (org-element-property :begin (dslide-heading obj)))))
+ (delete-overlay overlay)
+ ;; If there is a preceding overlay, move to its beginning else move to
the
+ ;; beginning of the heading.
+ (if-let ((overlay (car (oref obj overlays))))
+ (prog1 t
+ (dslide-marker obj (overlay-start overlay)))
+ (dslide-marker obj (org-element-property :begin (dslide-heading
obj))))))
#+end_src
** Default Classes
diff --git a/test/demo.org b/test/demo.org
index 7460fad898..bb804ce551 100644
--- a/test/demo.org
+++ b/test/demo.org
@@ -81,13 +81,13 @@ The babel block below is a custom action supporting both
forward, each step maki
(cl-defmethod dslide-backward ((obj dslide-action-red-paragraphs))
(when-let* ((overlay (pop (oref obj overlays))))
- (delete-overlay overlay))
+ (delete-overlay overlay)
;; If there is a preceding overlay, move to its beginning else move to the
;; beginning of the heading.
(if-let ((overlay (car (oref obj overlays))))
(prog1 t
(dslide-marker obj (overlay-start overlay)))
- (dslide-marker obj (org-element-property :begin (dslide-heading obj)))))
+ (dslide-marker obj (org-element-property :begin (dslide-heading obj))))))
#+end_src
*** Custom Action Demo
:PROPERTIES:
- [nongnu] elpa/dslide ea60e6e53e 035/230: prevent animation timer reference from being lost, (continued)
- [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
- [nongnu] elpa/dslide 92b39b410f 131/230: interesting bug in custom action,
ELPA Syncer <=
- [nongnu] elpa/dslide 7f578b605a 130/230: old name left over, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 40b4bfe353 147/230: multiple animation overlays, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 91b8fcaf92 153/230: introducing dslide-deck-develop, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 64dc89cd0f 156/230: allow explicit 'none for slide action class, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 93585c9173 158/230: slide composition order change (soon to refactor), ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 00597b9770 155/230: customization reminders in the demo, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 77126167a3 159/230: remove extraneous method qualifiers, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2ec658ec9e 162/230: reverse-in-place for children, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide a58a915104 163/230: understand progress from org elements, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 586082e591 165/230: set overlay initial height, ELPA Syncer, 2024/07/07