[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 217ddbe03e 185/230: a bit better display behavior
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 217ddbe03e 185/230: a bit better display behavior |
Date: |
Sun, 7 Jul 2024 19:00:35 -0400 (EDT) |
branch: elpa/dslide
commit 217ddbe03e673eb14ab0cfc1b28b09f2bd194707
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
a bit better display behavior
This is a bit in flux. We want dslide-deck-develop and dslide-deck-start
to do
the right thing. There could be buffers that were displayed due to some
babel.
Maybe the user abandoned a presentation. There's more cases that just need
to
be found and fixed.
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
dslide.el | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/dslide.el b/dslide.el
index 28987d8fac..a6cac966db 100644
--- a/dslide.el
+++ b/dslide.el
@@ -2606,7 +2606,9 @@ the caller."
(dslide-begin dslide--deck))
(defun dslide-display-develop ()
- (dslide-display-slides)
+ (let ((slide-buffer (oref dslide--deck slide-buffer)))
+ (unless (get-buffer-window slide-buffer))
+ (display-buffer slide-buffer 'display-buffer-same-window))
(let ((base-buffer (oref dslide--deck base-buffer)))
(unless (get-buffer-window base-buffer)
(display-buffer base-buffer 'display-buffer-pop-up-window))))
@@ -2754,12 +2756,15 @@ TODO Add support for arbitrary secondary tasks like
playing a
video or custom actions."
(interactive)
(if (dslide-live-p)
- (progn (dslide--ensure-slide-buffer)
- (if (dslide--showing-slides-p)
- ;; TODO check for secondary task here
- (dslide-display-contents)
- (dslide--choose-slide dslide--deck 'contents)
- (dslide-display-slides)))
+ (if (get-buffer-window (oref dslide--deck slide-buffer))
+ (progn
+ (dslide--ensure-slide-buffer)
+ (if (dslide--showing-slides-p)
+ ;; TODO check for secondary task here
+ (dslide-display-contents)
+ (dslide--choose-slide dslide--deck 'contents)
+ (dslide-display-slides)))
+ (dslide--ensure-slide-buffer t))
(let ((dslide-start-function
#'dslide-display-slides))
(dslide-mode 1))))
- [nongnu] elpa/dslide 91b8fcaf92 153/230: introducing dslide-deck-develop, (continued)
- [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
- [nongnu] elpa/dslide 6cf49d2625 181/230: Oh yeah, seq-find doesn't return the result, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 935224a638 182/230: ! introducing peel animation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 217ddbe03e 185/230: a bit better display behavior,
ELPA Syncer <=
- [nongnu] elpa/dslide 3a77163b15 188/230: ! hide markup action, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 04b2888a52 192/230: Hide markup action hides affiliated keywords, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 7ae80ecdca 194/230: cleaning up light misinformation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide df98f4e5c2 197/230: remove babel results, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide cdf8d97eb6 198/230: hide non-exporting babel, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide b95576d460 201/230: Remove flickering caused by animation float / int behavior mismatch, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1f02a2dfc0 205/230: line noise, no-op changes, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f2ef90a2bd 209/230: document various results / exports behaviors in babel demos, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0326d4d115 217/230: Fix mode check for dslide-develop command, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 5d1c50be3d 225/230: Add default to the header face specification, ELPA Syncer, 2024/07/07