[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed e1b24bff31 05/22: Remove duplicate functions
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed e1b24bff31 05/22: Remove duplicate functions |
Date: |
Tue, 1 Feb 2022 14:05:34 -0500 (EST) |
branch: elpa/subed
commit e1b24bff313bb7fb00d8d657d17125e04faae05a
Author: Sacha Chua <sacha@sachachua.com>
Commit: Sacha Chua <sacha@sachachua.com>
Remove duplicate functions
---
subed/subed-common.el | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/subed/subed-common.el b/subed/subed-common.el
index baaf723651..bf0ae27f33 100644
--- a/subed/subed-common.el
+++ b/subed/subed-common.el
@@ -128,15 +128,6 @@ See also `subed-subtitle-id-at-msecs'."
(when (and target-sub-id current-sub-id (not (= target-sub-id
current-sub-id)))
(subed-jump-to-subtitle-id target-sub-id))))
-(subed-define-generic-function jump-to-subtitle-id-at-msecs (msecs)
- "Move point to the ID of the subtitle that is playing at MSECS.
-Return point or nil if point is still on the same subtitle.
-See also `subed-subtitle-id-at-msecs'."
- (let ((current-sub-id (subed-subtitle-id))
- (target-sub-id (subed-subtitle-id-at-msecs msecs)))
- (when (and target-sub-id current-sub-id (not (equal target-sub-id
current-sub-id)))
- (subed-jump-to-subtitle-id target-sub-id))))
-
(subed-define-generic-function forward-subtitle-id ()
"Move point to next subtitle's ID.
Return point or nil if there is no next subtitle."
@@ -312,24 +303,6 @@ Return new point."
(subed-define-generic-function validate ()
"Move point to the first invalid subtitle and report an error.")
-(subed-define-generic-function sort ()
- "Sanitize, then sort subtitles by start time and re-number them."
- (interactive)
- (atomic-change-group
- (subed-sanitize)
- (subed-validate)
- (subed-save-excursion
- (goto-char (point-min))
- (sort-subr nil
- ;; nextrecfun (move to next record/subtitle or to end-of-buffer
- ;; if there are no more records)
- (lambda () (unless (subed-forward-subtitle-id)
- (goto-char (point-max))))
- ;; endrecfun (move to end of current record/subtitle)
- #'subed-jump-to-subtitle-end
- ;; startkeyfun (return sort value of current record/subtitle)
- #'subed-subtitle-msecs-start))))
-
;;; Utilities
(defmacro subed-save-excursion (&rest body)
- [nongnu] elpa/subed updated (f69c3e09f2 -> 3e99c6cb6f), ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 8120fb429f 04/22: Use defalias for non-interactive functions, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 7a3eed2acf 14/22: New function subed-subtitle-list returns list, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 8a9b219706 01/22: Create derived modes for the different types of subtitles., ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 0264eb4ef1 08/22: Bump version to 0.1.0 and add missing undercover-init.el, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed a0d633d7ac 09/22: Fix spaces in Makefile, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 4cab871f58 03/22: Add undercover support for coverage testing, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 3c7ac78393 12/22: Define jump-to-subtitle-text-at-msecs, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed f1f8e2ad56 13/22: Bugfixes to make VTT editing work, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed d6b46496f8 11/22: Fix save hook name, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed e1b24bff31 05/22: Remove duplicate functions,
ELPA Syncer <=
- [nongnu] elpa/subed 5c4ac92ddc 07/22: Add NEWS.org file, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed f3b48e319e 16/22: Use function instead of quote in subed-define-generic-function, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 5e9518da77 18/22: Work around direct call of subed-mode by guessing format, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 5ed05ad398 02/22: Implement mode-specific functions with cl-defmethod, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 1f7e32e176 06/22: README.org: document branches, mention autoloads, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed a58b002fe9 15/22: Clean up undercover-init.el, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 3e99c6cb6f 22/22: Merge branch 'derived-mode' into main, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed b3a4ae08ab 10/22: Add missing tests for merging and subtitle ID at msecs, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 94c28993b7 21/22: Define obsolete function aliases, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 00d5525712 17/22: Add autoloads, ELPA Syncer, 2022/02/01