Function: type-break-demo-life
type-break-demo-life is a byte-compiled function defined in
type-break.el.gz.
Signature
(type-break-demo-life)
Documentation
Take a typing break and get a life.
Source Code
;; Defined in /usr/src/emacs/lisp/type-break.el.gz
;; This is a wrapper around life that calls it with a `sleep' arg to make
;; it run a little more leisurely.
;; Also, clean up the *Life* buffer after we're done.
(defun type-break-demo-life ()
"Take a typing break and get a life."
(let ((continue t))
(while continue
(setq continue nil)
(and (get-buffer "*Life*")
(kill-buffer "*Life*"))
(condition-case ()
(progn
(life 3)
;; wait for user to return
(read-event)
(type-break-catch-up-event)
(kill-buffer "*Life*"))
(life-extinct
(message "%s" (get 'life-extinct 'error-message))
;; restart demo
(setq continue t))
(quit
(type-break-catch-up-event)
(and (get-buffer "*Life*")
(kill-buffer "*Life*")))))))