[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed ecbfd7f 119/389: Remove useless (progn ...)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed ecbfd7f 119/389: Remove useless (progn ...) |
Date: |
Fri, 3 Dec 2021 11:00:09 -0500 (EST) |
branch: elpa/subed
commit ecbfd7f71dc580168219957b30187a24d23fba99
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Remove useless (progn ...)
---
subed/subed.el | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/subed/subed.el b/subed/subed.el
index fb831e4..33ca601 100644
--- a/subed/subed.el
+++ b/subed/subed.el
@@ -145,20 +145,19 @@ Before BODY is run, point is placed on the subtitle's ID."
`(atomic-change-group
(if (not ,beg)
;; Run body on subtitle at point
- (progn (save-excursion (subed-jump-to-subtitle-id)
- ,@body))
- (progn
- ;; Run body on multiple subtitles
- (save-excursion
- (goto-char ,beg)
- (subed-jump-to-subtitle-id)
- (catch 'last-subtitle-reached
- (while t
- (when (> (point) (or ,end (point-max)))
- (throw 'last-subtitle-reached t))
- (progn ,@body)
- (unless (subed-forward-subtitle-id)
- (throw 'last-subtitle-reached t)))))))))
+ (save-excursion (subed-jump-to-subtitle-id)
+ ,@body)
+ ;; Run body on multiple subtitles
+ (save-excursion
+ (goto-char ,beg)
+ (subed-jump-to-subtitle-id)
+ (catch 'last-subtitle-reached
+ (while t
+ (when (> (point) (or ,end (point-max)))
+ (throw 'last-subtitle-reached t))
+ (progn ,@body)
+ (unless (subed-forward-subtitle-id)
+ (throw 'last-subtitle-reached t))))))))
(defun subed--right-pad (string length fillchar)
"Use FILLCHAR to make STRING LENGTH characters long."
- [nongnu] elpa/subed f76f7ea 092/389: Add keybindings C-M-n and C-M-p to move subtitles, (continued)
- [nongnu] elpa/subed f76f7ea 092/389: Add keybindings C-M-n and C-M-p to move subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d07bde4 093/389: Add moving subtitles to feature list and reword some stuff, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9ccfef7 096/389: Add subed--right-pad, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d4b1ddf 103/389: Rename subed-seconds-adjust/move to subed-milliseconds-adjust/move, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bdcdb0a 100/389: Remove deprecated variables, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 181b9f0 099/389: Test for lacking digits in millisecond, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 03dd3c6 106/389: Make subed-move-subtitle-forward/backward work with region (sort of), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 0f385d6 110/389: Keep logging debug messages when debugging is disabled, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 612f12a 111/389: Add "moving marked subtitles forward/backward in time" to features, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 4522e1a 113/389: Change keybindings to better conform with major mode conventions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ecbfd7f 119/389: Remove useless (progn ...),
ELPA Syncer <=
- [nongnu] elpa/subed 1950bb0 121/389: subed--replay-adjusted-subtitle: Show debug message before doing the deed, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f06d5f8 124/389: Add macro: subed--with-subtitle-replay-disabled, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3fafab8 125/389: Disable subtitle replay during subtitle movement, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 382e83c 126/389: Add more tests for moving subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d1a0b2f 127/389: Remove unnecessary spy-on, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 61cf9ce 129/389: Remove garbage tests for point-to-player syncing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3aa9a71 131/389: Pause player by default when editing subtitle text, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d85f988 136/389: Add keybindings for subed-shift-subtitle-forward/backward, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5b90306 140/389: Round mpv's playback position to prevent float weirdness (n.99999...), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 0f3add7 141/389: Temporarily disable point-to-player syncing when adjusting time, ELPA Syncer, 2021/12/03