Function: battery

battery is an autoloaded, interactive and byte-compiled function defined in battery.el.gz.

Signature

(battery)

Documentation

Display battery status information in the echo area.

The text being displayed in the echo area is controlled by the variables battery-echo-area-format and battery-status-function.

Probably introduced at or before Emacs version 23.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/battery.el.gz
;;;###autoload
(defun battery ()
  "Display battery status information in the echo area.
The text being displayed in the echo area is controlled by the variables
`battery-echo-area-format' and `battery-status-function'."
  (interactive)
  (message "%s" (if (and battery-echo-area-format battery-status-function)
		    (battery-format battery-echo-area-format
				    (funcall battery-status-function))
		  "Battery status not available")))