[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed cfe8d1c 228/389: subed-srt--backward-subtitle-id: Do
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed cfe8d1c 228/389: subed-srt--backward-subtitle-id: Don't look for different ID |
Date: |
Fri, 3 Dec 2021 11:00:31 -0500 (EST) |
branch: elpa/subed
commit cfe8d1c1cb4d417815c393e94183d9b583c53309
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
subed-srt--backward-subtitle-id: Don't look for different ID
The previous looked for an ID different from the current one when moving to
the
previous ID. But it doesn't really matter if all the IDs are the same, and
it's
unintuitive if point refuses to move backwards because the previous
subtitle has
the same ID.
---
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 f422ab5..f6a5e0c 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -249,14 +249,14 @@ Return point or nil if there is no next subtitle."
"Move point to previous subtitle's ID.
Return point or nil if there is no previous subtitle."
(interactive)
- (let ((orig-point (point))
- (orig-sub-id (subed-srt--subtitle-id)))
+ (let ((orig-point (point)))
(when (subed-srt--jump-to-subtitle-id)
- (forward-line -1)
- (if (= (subed-srt--subtitle-id) orig-sub-id)
- (progn (goto-char orig-point)
- nil)
- (subed-srt--jump-to-subtitle-id)))))
+ (if (re-search-backward (concat "\\(" subed-srt--regexp-separator
"\\|\\`[[:space:]]*\\)" "\\([0-9]+\\)\n") nil t)
+ (progn
+ (goto-char (match-beginning 2))
+ (point))
+ (goto-char orig-point)
+ nil))))
(defun subed-srt--forward-subtitle-text ()
"Move point to next subtitle's text.
- [nongnu] elpa/subed c1ee129 181/389: Add functions to adjust start/stop timestamps to player's ones, (continued)
- [nongnu] elpa/subed c1ee129 181/389: Add functions to adjust start/stop timestamps to player's ones, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9bf3fcc 213/389: Make timestamp adjustment limitations generic, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6fd0468 193/389: Use (defalias ...) instead of (fset ...), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed af4d876 211/389: use emacs 25 for e.g. alist-get, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9bc42c6 192/389: arg instead of (not (eq nil arg)), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7b5c5e0 205/389: Add/Fix tests for moving subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3b69f02 225/389: Simplify basic test for moving subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b6e484f 204/389: Move subtitles in active region as a unit, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 07a3774 218/389: Add generic function subed-subtitle-id-max, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 80a2545 223/389: Reduce LOC, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed cfe8d1c 228/389: subed-srt--backward-subtitle-id: Don't look for different ID,
ELPA Syncer <=
- [nongnu] elpa/subed 1e2dab9 229/389: remove sharp-quote from list; make variable customizable, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 17b5e1d 238/389: Adjust some test descriptions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bd6e798 247/389: subed-copy-player-pos-to-start/stop-time: Return playback position, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c3e67ec 250/389: Add/Reword some features, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d27e55a 253/389: Move most stuff from subed.el to subed-common.el, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b988a17 257/389: subed-replay-adjusted-subtitle-p: Fix if/when in docstring, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 080e512 262/389: Make variable subed-subtitle-format private, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed e7e791f 265/389: Activate support for multiple subtitle formats, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 831b0ea 267/389: Produce better error message when buffer-file-name is nil, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 864748c 270/389: Point to subed-mode docstring in "Commentary", ELPA Syncer, 2021/12/03