                                           (1+ (buffer-size))
                                           command-line
                                           live-py-trace-buffer))
-           " Live-t" ; t for trace ready
-         " Live-FAIL")))
+           live-py-lighter-ready
+         live-py-lighter-fail))
+      (force-mode-line-update)
+      (redisplay))
     (with-current-buffer live-py-trace-buffer
       (setq-local buffer-read-only 1)
       (unless reused-buffer (toggle-truncate-lines 1)))

(defvar live-py-dir nil)
(defvar live-py-path nil)
(defvar live-py-version nil)

;; Internal variables.
(defvar live-py-output-window nil)

                       t))))

  (unless (string-prefix-p live-py-dir buffer-file-name)
    (user-error "Working directory %s must be a parent of %s"
		live-py-dir
		buffer-file-name))
  (setq-local live-py-module (file-name-base buffer-file-name))
