[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 1fb1a599b7 074/230: Ensure buffer before running fo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 1fb1a599b7 074/230: Ensure buffer before running forward and backward commands |
Date: |
Sun, 7 Jul 2024 19:00:17 -0400 (EDT) |
branch: elpa/dslide
commit 1fb1a599b79cd2e3cc08e60f78e0b517bbb147db
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
Ensure buffer before running forward and backward commands
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
macro-slides.el | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/macro-slides.el b/macro-slides.el
index d6d3256854..8f7f5602b0 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -2560,16 +2560,11 @@ map. It starts the mode if the mode is inactive."
#'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."
(interactive)
- (unless ms-mode
- (user-error "Macro Slide Mode inactive"))
- (unless (ms-live-p)
- (error "No deck is active"))
+ (ms--ensure-slide-buffer)
(if (ms--showing-contents-p)
(org-next-visible-heading 1)
(ms--ensure-slide-buffer)
@@ -2579,10 +2574,7 @@ map. It starts the mode if the mode is inactive."
(defun ms-backward ()
"Advance slideshow backward."
(interactive)
- (unless ms-mode
- (user-error "Macro Slide Mode inactive"))
- (unless (ms-live-p)
- (error "No deck is active"))
+ (ms--ensure-slide-buffer)
(if (ms--showing-contents-p)
(org-previous-visible-heading 1)
(ms--ensure-slide-buffer)
- [nongnu] elpa/dslide e4beb23e57 002/230: Match breadcrumb separator to text properties from previous heading, (continued)
- [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, 2024/07/07
- [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 <=
- [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
- [nongnu] elpa/dslide a8f7174ef3 095/230: dead expression, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f24e5b8538 088/230: Rename argument, display-action -> display, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 18e079c83f 113/230: Clean up misinformation & propagate naming, ELPA Syncer, 2024/07/07