[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 03cd2bf 097/389: Wrap msecs-to-timestamp in save-mat
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 03cd2bf 097/389: Wrap msecs-to-timestamp in save-match-data |
Date: |
Fri, 3 Dec 2021 11:00:05 -0500 (EST) |
branch: elpa/subed
commit 03cd2bf8862416b309bd0f435eceffe7873e2fd0
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Wrap msecs-to-timestamp in save-match-data
Either format-seconds or format seem to alter match-data.
---
subed/subed-srt.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/subed/subed-srt.el b/subed/subed-srt.el
index 47ec9ff..841a508 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -56,8 +56,9 @@ Return nil if TIME-STRING doesn't match the pattern."
(defun subed-srt--msecs-to-timestamp (msecs)
"Convert MSECS to string in the format HH:MM:SS,MS."
- (concat (format-seconds "%02h:%02m:%02s" (/ msecs 1000))
- "," (format "%03d" (mod msecs 1000))))
+ (save-match-data
+ (concat (format-seconds "%02h:%02m:%02s" (/ msecs 1000))
+ "," (format "%03d" (mod msecs 1000)))))
(defun subed-srt--subtitle-id ()
"Return the ID of subtitle at point or nil if there is no ID."
- [nongnu] elpa/subed 489bbea 130/389: Remove subed-milliseconds-move, (continued)
- [nongnu] elpa/subed 489bbea 130/389: Remove subed-milliseconds-move, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a7dda70 137/389: Add subtitle shifting to features, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a819a93 139/389: Fix test description, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 06851d8 143/389: Prevent overlapping when adjusting subtitle start/stop time, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 651c6de 031/389: Wrap some function bodies in save-match-data, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 57c902a 068/389: subed-srt-sanitize: Don't change buffer unless it's necessary, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 1571de4 070/389: Use prefix arg to set start/stop time adjustment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f832a1d 075/389: Add more tests for subed-srt-move-to-subtitle-end, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8374498 076/389: README: Split feature list and some rewording, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d0708e5 080/389: Fix screenshot, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 03cd2bf 097/389: Wrap msecs-to-timestamp in save-match-data,
ELPA Syncer <=
- [nongnu] elpa/subed 4960c74 098/389: Make timestamp parsing more robust, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9b95137 104/389: Test subed--for-each-subtitle more thoroughly, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ec03689 105/389: Fix subed--for-each-subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a7cbce6 107/389: Test subed-move-subtitle-forward/backward more thoroughly, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5da6d79 112/389: Add "pause with key" to features, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 868d05c 114/389: Adjust some variable descriptions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6cf5df4 036/389: Remove annoying minibuffer messages, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3927690 037/389: Some rewording, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 62d5d3d 038/389: Use (unless ...) instead of (when (not ...)), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 166988c 041/389: Special subtitle separator when moving to end of subtitle, ELPA Syncer, 2021/12/03