|
|
|
@ -49,7 +49,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
|
|
;; TODOS:
|
|
|
|
;; TODOS: tacc-running? needs to be replaced by tacc-session? and tacc-live? depending on context
|
|
|
|
|
|
|
|
;;
|
|
|
|
;; ERROR: timer shutdown seems to leave things in a wrong state and buffer doesn't die properly
|
|
|
|
;; ERROR: timer shutdown seems to leave things in a wrong state and buffer doesn't die properly
|
|
|
|
;; Check on the logic of push-current, needs predicates rather than lazy if conditions
|
|
|
|
;; Check on the logic of push-current, needs predicates rather than lazy if conditions
|
|
|
|
;; I'm not calling anything to destroy the buffer on desched
|
|
|
|
;; I'm not calling anything to destroy the buffer on desched
|
|
|
|
@ -287,7 +288,6 @@ registered" sym-name)
|
|
|
|
"Timer object controlling tacc's second-by-second update")
|
|
|
|
"Timer object controlling tacc's second-by-second update")
|
|
|
|
|
|
|
|
|
|
|
|
;; 05.2 State checks
|
|
|
|
;; 05.2 State checks
|
|
|
|
;; TODO: tacc-running? needs to be replaced by tacc-session? and tacc-live? depending on context
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defun tacc-buffer ()
|
|
|
|
(defun tacc-buffer ()
|
|
|
|
@ -316,7 +316,7 @@ registered" sym-name)
|
|
|
|
|
|
|
|
|
|
|
|
(defun tacc-session? ()
|
|
|
|
(defun tacc-session? ()
|
|
|
|
"Checks if tacc session info indicates there should be session information"
|
|
|
|
"Checks if tacc session info indicates there should be session information"
|
|
|
|
(tacc-running-state? (alist-get 'state tacc-info)))
|
|
|
|
(tacc-session-state? (alist-get 'state tacc-info)))
|
|
|
|
|
|
|
|
|
|
|
|
(defun tacc-history? ()
|
|
|
|
(defun tacc-history? ()
|
|
|
|
"Checks if tacc session has history information"
|
|
|
|
"Checks if tacc session has history information"
|
|
|
|
@ -328,10 +328,14 @@ registered" sym-name)
|
|
|
|
"Returns t if tacc is in a legal state for mutating tacc-info
|
|
|
|
"Returns t if tacc is in a legal state for mutating tacc-info
|
|
|
|
Note, if there is no tacc-buffer then you shouldn't be touching tacc-info"
|
|
|
|
Note, if there is no tacc-buffer then you shouldn't be touching tacc-info"
|
|
|
|
(if (bufferp (tacc-buffer))
|
|
|
|
(if (bufferp (tacc-buffer))
|
|
|
|
(if (and (tacc-running?)
|
|
|
|
(if (tacc-live?)
|
|
|
|
(tacc-live?))
|
|
|
|
(if (tacc-live-state?)
|
|
|
|
t)
|
|
|
|
t
|
|
|
|
(signal 'tacc-error-illegal-buffer-state (tacc-buffer))))
|
|
|
|
(signal 'tacc-error-illegal-buffer-state (tacc-buffer))) ;; Timer running without logical knowledge
|
|
|
|
|
|
|
|
(if (tacc-session-state?)
|
|
|
|
|
|
|
|
t
|
|
|
|
|
|
|
|
(signal 'tacc-error-illegal-buffer-state (tacc-buffer)))) ;; Buffer live without logical reason
|
|
|
|
|
|
|
|
(signal 'tacc-error-illegal-buffer-state (tacc-buffer)))) ;; We shouldn't be calling this when the buffer is dead
|
|
|
|
|
|
|
|
|
|
|
|
;; 05.3 Predicates and helpers
|
|
|
|
;; 05.3 Predicates and helpers
|
|
|
|
(defun tacc-chime-p (countdown-ts)
|
|
|
|
(defun tacc-chime-p (countdown-ts)
|
|
|
|
|