Variable: battery-update-interval

battery-update-interval is a customizable variable defined in battery.el.gz.

Value

60

Documentation

Seconds after which the battery status will be updated.

A value of nil means do not poll for battery status changes. This can be useful when battery-status-function is set to battery-upower and battery-upower-subscribe is non-nil, in which case D-Bus automatically signals battery status changes.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/battery.el.gz
(defcustom battery-update-interval 60
  "Seconds after which the battery status will be updated.
A value of nil means do not poll for battery status changes.
This can be useful when `battery-status-function' is set to
`battery-upower' and `battery-upower-subscribe' is non-nil, in
which case D-Bus automatically signals battery status changes."
  :version "31.1"
  :type '(choice (const :tag "Never" nil)
                 (integer :tag "Number of seconds")))