From c36261caaff9305d256c616edcc9d1fdb51b1b42 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 3 Nov 2022 18:41:22 -0400 Subject: Change hooks to pass the talk variable --- emacsconf-stream.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'emacsconf-stream.el') diff --git a/emacsconf-stream.el b/emacsconf-stream.el index 26586b2..fd1395a 100644 --- a/emacsconf-stream.el +++ b/emacsconf-stream.el @@ -145,15 +145,15 @@ while OTHER-FILENAME will be displayed at other times." (plist-get talk :overlay-url) (plist-get talk :overlay-bottom))))) -(defun emacsconf-stream-update-talk-info-org-after-todo-state-change () +(defun emacsconf-stream-update-talk-info-on-change (talk) "Update talk info." (when (string= org-state "PLAYING") - (emacsconf-stream-set-talk-info (emacsconf-get-talk-info-for-subtree)))) + (emacsconf-stream-set-talk-info talk))) -(defun emacsconf-stream-play-talk-org-after-todo-state-change () +(defun emacsconf-stream-play-talk-on-change (talk) "Play the talk." (when (string= org-state "PLAYING") - (emacsconf-stream-play-video (emacsconf-get-talk-info-for-subtree)))) + (emacsconf-stream-play-video talk))) (defun emacsconf-stream-get-filename (talk) "Return the local filename for the video file for TALK. -- cgit v1.2.3