[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed fabc7dc 306/389: Move function around
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed fabc7dc 306/389: Move function around |
Date: |
Fri, 3 Dec 2021 11:00:47 -0500 (EST) |
branch: elpa/subed
commit fabc7dc43e043458aa1bb95dcd722dbd79850202
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Move function around
---
subed/subed-srt.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/subed/subed-srt.el b/subed/subed-srt.el
index 06e5d29..2b5952c 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -176,6 +176,13 @@ See also `subed-srt--subtitle-id-at-msecs'."
(when (and target-sub-id current-sub-id (not (= target-sub-id
current-sub-id)))
(subed-srt--jump-to-subtitle-id target-sub-id))))
+(defun subed-srt--jump-to-subtitle-text-at-msecs (msecs)
+ "Move point to the text of the subtitle that is playing at MSECS.
+Return point or nil if point is still on the same subtitle.
+See also `subed-srt--subtitle-id-at-msecs'."
+ (when (subed-srt--jump-to-subtitle-id-at-msecs msecs)
+ (subed-srt--jump-to-subtitle-text)))
+
(defun subed-srt--jump-to-subtitle-time-start (&optional sub-id)
"Move point to subtitle's start time.
If SUB-ID is not given, use subtitle on point.
@@ -208,13 +215,6 @@ Return point or nil if a the subtitle's text can't be
found."
(forward-line 2)
(point)))
-(defun subed-srt--jump-to-subtitle-text-at-msecs (msecs)
- "Move point to the text of the subtitle that is playing at MSECS.
-Return point or nil if point is still on the same subtitle.
-See also `subed-srt--subtitle-id-at-msecs'."
- (when (subed-srt--jump-to-subtitle-id-at-msecs msecs)
- (subed-srt--jump-to-subtitle-text)))
-
(defun subed-srt--jump-to-subtitle-end (&optional sub-id)
"Move point after the last character of the subtitle's text.
If SUB-ID is not given, use subtitle on point.
- [nongnu] elpa/subed fcc1951 288/389: Add subed-mpv-file-loaded-hook, (continued)
- [nongnu] elpa/subed fcc1951 288/389: Add subed-mpv-file-loaded-hook, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d87e2cd 290/389: Add save-place-local-mode to example config, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed e7ae26e 292/389: Add target: clean, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 73e11d4 291/389: Define subed-mode as derived mode, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed df96747 297/389: Rename subed-mpv--handle-event -> subed-mpv--client-handle-event, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 4ef1646 298/389: subed-mpv-find-video: Kill previous mpv instance if existing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 0872ab7 299/389: Remove "subed-mode enabled" message, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6215cb1 300/389: Add test-compile target, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9078a46 303/389: subed-srt--validate: Don't complain if buffer contains only whitespace, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f2f11ca 305/389: subed-mpv-find-video: Gracefully handle new file, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed fabc7dc 306/389: Move function around,
ELPA Syncer <=
- [nongnu] elpa/subed aecaf3d 309/389: Better support for fill-paragraph, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d34bdec 310/389: Fix mismatched parens in example config, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 66889a1 311/389: Fix test: Renumbering does not modify the kill-ring, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed e1fd29b 312/389: subed-srt--regenerate-ids: Do not modify empty buffer, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ca015d4 313/389: Fix one compile warning, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 317c411 314/389: Remove declarations, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 72020af 315/389: Use long options, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed be43268 316/389: Fix test-compile target, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3753706 318/389: Fix warning about missing function: subed-mpv--sub-add-after-save, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 473fbc2 319/389: subed-srt--subtitle-text: Improve docstring, ELPA Syncer, 2021/12/03