[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 9f55817 369/389: Wrap start/stop calculating functio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 9f55817 369/389: Wrap start/stop calculating functions in `ignore-errors' |
Date: |
Fri, 3 Dec 2021 11:01:00 -0500 (EST) |
branch: elpa/subed
commit 9f55817c9bb27d2bb74b7deb0981b296b4274885
Author: Marcin Borkowski <mbork@mbork.pl>
Commit: Marcin Borkowski <mbork@mbork.pl>
Wrap start/stop calculating functions in `ignore-errors'
This fixes an issue when these functions errored out during changes
that temporarily broke the correctness of the timestamps, like
`undo'.
---
subed/subed-common.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/subed/subed-common.el b/subed/subed-common.el
index d0ca925..5fdc61c 100644
--- a/subed/subed-common.el
+++ b/subed/subed-common.el
@@ -1073,8 +1073,8 @@ Return nil if function `buffer-file-name' returns nil."
(defun subed-calculate-cps (&optional print-message)
"Calculate characters per second of the current subtitle."
(interactive "p")
- (let* ((msecs-start (subed-subtitle-msecs-start))
- (msecs-stop (subed-subtitle-msecs-stop))
+ (let* ((msecs-start (ignore-errors (subed-subtitle-msecs-start)))
+ (msecs-stop (ignore-errors (subed-subtitle-msecs-stop)))
(text (if (fboundp subed-transform-for-cps)
(funcall subed-transform-for-cps (subed-subtitle-text))
(subed-subtitle-text)))
- [nongnu] elpa/subed 97bb125 183/389: Add default keybindings for copying player position, (continued)
- [nongnu] elpa/subed 97bb125 183/389: Add default keybindings for copying player position, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7665826 248/389: Add tests for copying player position to start/stop time, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a280e89 251/389: Add more text to README, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 311f4af 331/389: Require Emacs 25.1, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed fc7a12d 335/389: Fix mpv arguments, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d9c41ba 345/389: Add test for validation fix, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8bdec56 356/389: Move subed-split-subtitle to "Inserting" section, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b28f528 364/389: Revert indentation changes, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5b868c3 366/389: Fix minor issues in README.org added in last commit, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6949622 365/389: Adopt REUSE standard for copyright and licensing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9f55817 369/389: Wrap start/stop calculating functions in `ignore-errors',
ELPA Syncer <=
- [nongnu] elpa/subed beda7dc 371/389: Add functions to insert HTML-like tags, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c23dd84 373/389: Add info about the new features to README.org, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6a5802c 374/389: Add video movement per frame, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 828764f 375/389: Change keybindings and use a transient keymap, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5de6f21 377/389: Add msecs-to-timestamp as a common function, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b42f563 378/389: Add audio extensions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6b1a6f2 367/389: Add computing and displaying characters per second, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3ba295b 336/389: Fix "service name too long", ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 961e5eb 343/389: More subed-vtt fixes: require subed-vtt, validate better, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 87b3823 353/389: subed-split-subtitle works at the beginning or end of subtitle text, ELPA Syncer, 2021/12/03