branch: elpa/subed commit 49ddccc917956c15a9b36983cd6a817ba2b3ec3c Author: Gong Qijian <gongqij...@gmail.com> Commit: Random User <rnd...@posteo.de>
Move subed--init-alist to subed.el --- subed/subed-config.el | 4 ---- subed/subed.el | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/subed/subed-config.el b/subed/subed-config.el index dc3120f..f2f62d8 100644 --- a/subed/subed-config.el +++ b/subed/subed-config.el @@ -36,10 +36,6 @@ (defvar-local subed--subtitle-format nil "Short form of the name of the subtitle format in the current buffer (e.g. \"srt\").") -(defvar subed--init-alist '(("srt" . subed-srt--init) - ("vtt" . subed-vtt--init)) - "Alist that maps file extensions to format-specific init functions.") - ;; This variable is set in subed.el to avoid compiler warnings because it uses ;; functions defined in subed-common.el, and (require 'subed-common) results in ;; recursive requires. diff --git a/subed/subed.el b/subed/subed.el index 0374f21..02196db 100644 --- a/subed/subed.el +++ b/subed/subed.el @@ -73,6 +73,10 @@ (define-key subed-mode-map (kbd "C-c ,") #'subed-toggle-sync-player-to-point) subed-mode-map)) +;;;###autoload +(defvar subed--init-alist '(("srt" . subed-srt--init) + ("vtt" . subed-vtt--init)) + "Alist that maps file extensions to format-specific init functions.") ;;; Abstraction hack to support different subtitle formats ;;