[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 2709ca293b 4/9: subed-subtitles-sorted-hook: New hoo
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/subed 2709ca293b 4/9: subed-subtitles-sorted-hook: New hook. |
|
Date: |
Tue, 28 Nov 2023 19:00:27 -0500 (EST) |
branch: elpa/subed
commit 2709ca293be93a91c32d71db72cc2fedd9bb6611
Author: Sacha Chua <sacha@sachachua.com>
Commit: Sacha Chua <sacha@sachachua.com>
subed-subtitles-sorted-hook: New hook.
This should make it easier to regenerate waveforms after sorting.
* subed/subed-config.el (subed-subtitles-sorted-hook): New hook.
* subed/subed-common.el (sort): Call subed-subtitles-sorted-hook.
---
subed/subed-common.el | 3 ++-
subed/subed-config.el | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/subed/subed-common.el b/subed/subed-common.el
index 23d545a558..3124d1889a 100644
--- a/subed/subed-common.el
+++ b/subed/subed-common.el
@@ -2236,7 +2236,8 @@ If LIST is nil, use the subtitles in the current buffer."
#'subed-jump-to-subtitle-end
;; startkeyfun (return sort value of current
record/subtitle)
#'subed-subtitle-msecs-start))
- (subed-regenerate-ids)))))
+ (subed-regenerate-ids)
+ (run-hooks 'subed-subtitles-sorted-hook)))))
;;; Conversion
diff --git a/subed/subed-config.el b/subed/subed-config.el
index 04fbee69ef..7ffbdf2e21 100644
--- a/subed/subed-config.el
+++ b/subed/subed-config.el
@@ -308,6 +308,8 @@ The functions are called with the subtitle's start time."
(defvar-local subed-subtitle-motion-hook nil
"Functions to call after current subtitle changed.")
+(defvar-local subed-subtitles-sorted-hook nil
+ "Functions to call after subtitles are sorted.")
(provide 'subed-config)
;;; subed-config.el ends here
- [nongnu] elpa/subed updated (774e5b3f07 -> a5668700a5), ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed 80ea6f8389 3/9: Mark subed-set-subtitle-comment as interactive., ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed 2efc49757e 2/9: subed-save-excursion: go back to point in more cases, ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed 8dd38c8b16 8/9: subed-waveform: Allow showing all waveforms, add M-mouse-1 and M-mouse-3, ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed 2709ca293b 4/9: subed-subtitles-sorted-hook: New hook.,
ELPA Syncer <=
- [nongnu] elpa/subed 94976a262a 5/9: Default to keeping MPV open at the end of the file, ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed 56abe632b0 6/9: Add autoload for subed-tsv-mode, ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed 191f301553 7/9: test-subed-vtt: Add test for sorting from the header., ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed a5668700a5 9/9: 1.2.8: bump version, document news, ELPA Syncer, 2023/11/28
- [nongnu] elpa/subed f73ee618bf 1/9: New function subed-media-file controlled by subed-media-file-functions, ELPA Syncer, 2023/11/28