Function: type-break-statistics
type-break-statistics is an autoloaded, interactive and byte-compiled
function defined in type-break.el.gz.
Signature
(type-break-statistics)
Documentation
Print statistics about typing breaks in a temporary buffer.
This includes the last time a typing break was taken, when the next one is scheduled, the keystroke thresholds and the current keystroke count, etc.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/type-break.el.gz
;;;###autoload
(defun type-break-statistics ()
"Print statistics about typing breaks in a temporary buffer.
This includes the last time a typing break was taken, when the next one is
scheduled, the keystroke thresholds and the current keystroke count, etc."
(interactive)
(with-output-to-temp-buffer "*Typing Break Statistics*"
(princ (format "Typing break statistics\n-----------------------\n
Typing break mode is currently %s.
Interactive query for breaks is %s.
Warnings of imminent typing breaks in mode line is %s.
Last typing break ended : %s
Next scheduled typing break : %s\n
Minimum keystroke threshold : %s
Maximum keystroke threshold : %s
Current keystroke count : %s"
(if type-break-mode "enabled" "disabled")
(if type-break-query-mode "enabled" "disabled")
(if type-break-mode-line-message-mode "enabled" "disabled")
(if type-break-time-last-break
(current-time-string type-break-time-last-break)
"never")
(if (and type-break-mode type-break-time-next-break)
(format "%s\t(%s from now)"
(current-time-string type-break-time-next-break)
(type-break-format-time
(type-break-time-difference
nil
type-break-time-next-break)))
"none scheduled")
(or (car type-break-keystroke-threshold) "none")
(or (cdr type-break-keystroke-threshold) "none")
type-break-keystroke-count))))