[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 06e9ce9 227/389: Make group in regexp-separator shy
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 06e9ce9 227/389: Make group in regexp-separator shy |
Date: |
Fri, 3 Dec 2021 11:00:31 -0500 (EST) |
branch: elpa/subed
commit 06e9ce9915bd8dbc6a2d874725a258673af2b7ab
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Make group in regexp-separator shy
---
subed/subed-srt.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/subed/subed-srt.el b/subed/subed-srt.el
index 8b5e95c..f422ab5 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -41,7 +41,7 @@
;;; Parsing
(defconst subed-srt--regexp-timestamp
"\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\),\\([0-9]+\\)")
-(defconst subed-srt--regexp-separator "\\([[:blank:]]*\n\\)+[[:blank:]]*\n")
+(defconst subed-srt--regexp-separator "\\(?:[[:blank:]]*\n\\)+[[:blank:]]*\n")
(defun subed-srt--timestamp-to-msecs (time-string)
"Find HH:MM:SS,MS pattern in TIME-STRING and convert it to milliseconds.
@@ -156,7 +156,7 @@ Return point or nil if no subtitle ID could be found."
(match-found (progn (goto-char (point-min))
(re-search-forward regex nil t))))
(if match-found
- (goto-char (match-beginning 3))
+ (goto-char (match-beginning 2))
(goto-char orig-point)))
;; Find one or more blank lines.
(re-search-forward "\\([[:blank:]]*\n\\)+" nil t)
@@ -165,7 +165,7 @@ Return point or nil if no subtitle ID could be found."
(let* ((regex (concat "\\(" subed-srt--regexp-separator
"\\|\\`\\)\\([0-9]+\\)$"))
(match-found (re-search-backward regex nil t)))
(when match-found
- (goto-char (match-beginning 3)))))
+ (goto-char (match-beginning 2)))))
;; Make extra sure we're on an ID, return nil if we're not
(when (looking-at "^\\([0-9]+\\)$")
(point))))
- [nongnu] elpa/subed 0852968 210/389: adjust auto-mode-alist regexp match, (continued)
- [nongnu] elpa/subed 0852968 210/389: adjust auto-mode-alist regexp match, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9fc0cbf 200/389: Remove mpv socket when stopping mpv, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 49e73c7 209/389: mark variable as unused with leading underscore, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 4195590 189/389: (unless ...) instead of (when (not ...) ...), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8c3651f9 184/389: Remove alpha warning, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a42ba17 220/389: Simplify subed-srt--subtitle-kill, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed cefb54b 194/389: (unless ...) instead of (when (not ...) ...), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 769718c 212/389: Fix test for re-enabling point-to-player syncing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6d53418 224/389: Add test for killing non-last subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed e621108 219/389: Adjust subtitle killing test descriptions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 06e9ce9 227/389: Make group in regexp-separator shy,
ELPA Syncer <=
- [nongnu] elpa/subed f7f9fcf 226/389: Remove useless concat, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6e5a127 231/389: declare variables and functions that subed.el defines, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 56b2ff2 232/389: Move most of the insertion complexity to subed.el, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d3bc655 234/389: Update subed-default-subtitle-length docstring, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a1c150b 235/389: Update subed-subtitle-spacing docstring, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 43e8e91 236/389: Fix insert test, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c84e5cb 233/389: Rename *-subtitle-kill to *-kill-subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5f803d5 244/389: Add some missing tests, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed aae6f0c 123/389: Add function: subed-srt--run-subtitle-time-adjusted-hook, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b912311 128/389: Do not sync point to player if region is active, ELPA Syncer, 2021/12/03