[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide fa1e9e2d88 200/230: inhibit re-display around entir
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide fa1e9e2d88 200/230: inhibit re-display around entire steps |
Date: |
Sun, 7 Jul 2024 19:00:38 -0400 (EDT) |
branch: elpa/dslide
commit fa1e9e2d883cd38e78758a768054688c9f3409ac
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
inhibit re-display around entire steps
Babel benefited from this, but other things may as well.
The user shouldn't be doing animation things within steps. Use timers.
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
dslide.el | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/dslide.el b/dslide.el
index cd4f42a50d..f6516cf341 100644
--- a/dslide.el
+++ b/dslide.el
@@ -721,10 +721,12 @@ Class can be overridden to affect root behaviors. See
;; already
(error "No slide selected"))
- (while dslide--step-overlays
- (delete-overlay (pop dslide--step-overlays)))
+ (let ((inhibit-redisplay t)
+ progress
+ reached-end)
+ (while dslide--step-overlays
+ (delete-overlay (pop dslide--step-overlays)))
- (let (progress reached-end)
;; Burn up a step callback until one returns non-nil
(when-let ((steps (oref obj step-callbacks)))
(while (and (not progress)
@@ -772,9 +774,6 @@ Class can be overridden to affect root behaviors. See
;; already
(error "No slide selected"))
- (while dslide--step-overlays
- (delete-overlay (pop dslide--step-overlays)))
-
;; Going backward is almost the same as going forward. The big difference is
;; that when a slide is instantiated, it needs to be sent to its end.
Usually
;; the default implementation, which calls forward until progress is
@@ -783,7 +782,12 @@ Class can be overridden to affect root behaviors. See
;; idempotent `dslide-begin' and `dslide-final' if any support for going
;; backwards is desirable.
- (let (progress reached-beginning)
+ (let ((inhibit-redisplay t)
+ progress
+ reached-beginning)
+ (while dslide--step-overlays
+ (delete-overlay (pop dslide--step-overlays)))
+
;; Burn up a step callback until one returns non-nil
(when-let ((steps (and (slot-boundp obj 'step-callbacks)
(oref obj step-callbacks))))
@@ -1357,15 +1361,15 @@ Optional UNNAMED will return unnamed blocks as well."
(block-end (org-element-property :end block-element)))
(goto-char block-begin)
;; Executing babel seems to widen and also creates messages, and this
- ;; results in flashing. The downside of just inhibiting re-display
until
- ;; after the call is that if re-display is needed, such as if calling
- ;; `sleep-for' in a loop, then no updates will be visible. However,
the
- ;; user should really handle this with a timer or process output and
- ;; process sentinel etc.
+ ;; would result in flashing. Re-display is inhibited at the deck level
+ ;; to prevent these unpleasantries. The downside of just inhibiting
+ ;; re-display until after the call is that if re-display is needed,
such
+ ;; as if calling `sleep-for' in a loop, then no updates will be
visible.
+ ;; However, the user should really handle this with a timer or process
+ ;; output and process sentinel etc.
(condition-case user-wrote-flaky-babel
;; t for don't cache. We likely want effects
- (progn (let ((inhibit-redisplay t))
- (org-babel-execute-src-block t))
+ (progn (org-babel-execute-src-block t)
(dslide--base-buffer-highlight-region
block-begin block-end 'dslide-babel-success-highlight))
((debug error)
- [nongnu] elpa/dslide 25a0f79723 213/230: adminsitrative & version bump, (continued)
- [nongnu] elpa/dslide 25a0f79723 213/230: adminsitrative & version bump, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 54e2a8fdc4 230/230: readme fixups., ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 907e004bca 226/230: Configurable header function, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 8f56d6914d 221/230: Fix fat-finger in d0e1177, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 69eed331ca 222/230: melpa badges and mild readme updates, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 55803bc16a 224/230: Respect custom header option when narrowing to contents view, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 461a022068 038/230: Narrowing is a slide action. A tale of improvement., ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 407aa5cf3b 143/230: recenter in base buffer after quit, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 145b06df68 196/230: indentation / expression nested hiccup, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide dd3b7c5298 199/230: Configurable element hiding, including comment-blocks, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide fa1e9e2d88 200/230: inhibit re-display around entire steps,
ELPA Syncer <=
- [nongnu] elpa/dslide d57ce09545 207/230: un-hide new results from blocks configured :exports results, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f592ee157b 208/230: don't remove results going backward, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 3830850d00 214/230: Typos, dead code, updating comments, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2d8a9ac3e3 229/230: version bump, ELPA Syncer, 2024/07/07