[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 81aca87 008/389: Be more robust when moving forward/
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 81aca87 008/389: Be more robust when moving forward/backward to subtitle text |
Date: |
Fri, 3 Dec 2021 10:59:46 -0500 (EST) |
branch: elpa/subed
commit 81aca876336bc88bf1224dbfc04b41502e13808c
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Be more robust when moving forward/backward to subtitle text
---
subed/subed-srt.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/subed/subed-srt.el b/subed/subed-srt.el
index ea057c3..d501386 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -214,16 +214,17 @@ first subtitle)."
(defun subed-srt-forward-subtitle-text ()
"Move point to next subtitle's text.
-Return new point"
+Return point or nil if there is no next subtitle."
(interactive)
- (subed-srt-forward-subtitle-id)
- (subed-srt-move-to-subtitle-text))
+ (when (subed-srt-forward-subtitle-id)
+ (subed-srt-move-to-subtitle-text)))
(defun subed-srt-backward-subtitle-text ()
- "Move point to previous subtitle's text"
+ "Move point to previous subtitle's text.
+Return point or nil if there is no previous subtitle."
(interactive)
- (subed-srt-backward-subtitle-id)
- (subed-srt-move-to-subtitle-text))
+ (when (subed-srt-backward-subtitle-id)
+ (subed-srt-move-to-subtitle-text)))
(defun subed-srt-forward-subtitle-time-start ()
"Move point to next subtitle's start time."
- [nongnu] elpa/subed 4e31010 062/389: mpv returns nil as "time-pos" in at least one circumstance, (continued)
- [nongnu] elpa/subed 4e31010 062/389: mpv returns nil as "time-pos" in at least one circumstance, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 1c8e0d1 064/389: Sanitize separator between start and stop time, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3c1a1b4 065/389: Don't validate anything if buffer is empty, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ce14b0d 074/389: Adjust comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8fa0f6c 078/389: Remove debugging messages, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 96e7fcf 086/389: Add subed--get-seconds-move, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 189e5aa 088/389: Make more functions available format-agnosticly, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 14d52d7 089/389: Add subed--for-each-subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7710790 090/389: Add subed-move-subtitle-forward/backward, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3511026 091/389: Move utilities to the top, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 81aca87 008/389: Be more robust when moving forward/backward to subtitle text,
ELPA Syncer <=
- [nongnu] elpa/subed 8e4bd20 069/389: Fix indentation, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6e525b9 079/389: Add screenshot, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bf9ceeb 094/389: Reduce word count by 1, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 42199eb 095/389: Workaround for GitHub's lack of support for ~~/path/in/home~, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5c51000 101/389: Call time-adjusted-hook functions with start time, not stop time, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 53d1e33 102/389: Fix error when adjusting start/stop time in empty buffer, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a0cb0f1 108/389: Keep region active during subtitle movement, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 2c7554a 109/389: Wrap subed--for-each-subtitle in atomic-change-group, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed e792e0f 122/389: Fix test description, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 489bbea 130/389: Remove subed-milliseconds-move, ELPA Syncer, 2021/12/03