[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed dbc8394 222/389: Prevent extra goto-char when jumpin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed dbc8394 222/389: Prevent extra goto-char when jumping to specific subtitle ID |
Date: |
Fri, 3 Dec 2021 11:00:30 -0500 (EST) |
branch: elpa/subed
commit dbc839420e6bba2dcf1afcaba69a6f201dca75bd
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Prevent extra goto-char when jumping to specific subtitle ID
---
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 acc90f7..8b5e95c 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -155,9 +155,9 @@ Return point or nil if no subtitle ID could be found."
(regex (format "\\(%s\\|\\`\\)\\(%d\\)$"
subed-srt--regexp-separator sub-id))
(match-found (progn (goto-char (point-min))
(re-search-forward regex nil t))))
- (goto-char orig-point)
- (when match-found
- (goto-char (match-beginning 3))))
+ (if match-found
+ (goto-char (match-beginning 3))
+ (goto-char orig-point)))
;; Find one or more blank lines.
(re-search-forward "\\([[:blank:]]*\n\\)+" nil t)
;; Find two or more blank lines or the beginning of the buffer, followed
- [nongnu] elpa/subed 1654a08 207/389: Properly indent tests, (continued)
- [nongnu] elpa/subed 1654a08 207/389: Properly indent tests, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3bab6b7 196/389: Use subed-mpv-socket-dir for subed-mpv--socket, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 08e9762 188/389: Add option to ignore negative duration when adjusting start/stop time, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 06aa155 187/389: Remove debugging messages from tests, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8bebab8 199/389: Report error when mpv socket file already exists, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed fbadab7 198/389: Add function subed--buffer-file-name, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed cd972bd 191/389: (not ...) instead of (eq ... nil), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 1821ccd 190/389: (not ...) instead of (eq ... nil), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 37545d9 201/389: Call subed-mpv-kill when Emacs exits, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed fafff02 221/389: subed-srt--jump-to-subtitle-id: Remove useless progn, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed dbc8394 222/389: Prevent extra goto-char when jumping to specific subtitle ID,
ELPA Syncer <=
- [nongnu] elpa/subed 7e2fe58 230/389: lint guards, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 77c206e 237/389: Remove redundant jumps, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 29652a4 239/389: Add subed-insert-subtitle-adjacent, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 422981e 240/389: Fix typos in tests, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 67d6253 241/389: Add more tests for subtitle insertion, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 1342294 242/389: Add more tests for inserting subtitles adjacent, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ee0e3eb 243/389: subed-insert-subtitle-adjacent: Maybe use reduced subtitle spacing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 1ef2dbb 245/389: Add more tests for inserting subtitles adjacent with restricted space, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 239deaf 246/389: subed-copy-player-pos-to-start/stop-time: Use generic functions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 0924465 261/389: subed-srt--prepend-subtitle: Fix docstring, ELPA Syncer, 2021/12/03