diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-06-03 15:04:42 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-06-03 15:04:42 +0300 |
commit | a0b2239002d0730171c9904bd93b84447e3eb466 (patch) | |
tree | 96fab240e3022f38b7225818ab81b9c18a158d15 /lisp/battery.el | |
parent | dc7623a59e5e90d310cb1c338790a3df5f90e891 (diff) | |
download | emacs-a0b2239002d0730171c9904bd93b84447e3eb466.tar.gz emacs-a0b2239002d0730171c9904bd93b84447e3eb466.tar.bz2 emacs-a0b2239002d0730171c9904bd93b84447e3eb466.zip |
; Improve documentation of 'battery-update-functions'
* lisp/battery.el (battery-update-functions)
(display-battery-mode): Improve wording of doc strings.
(Bug#55770)
Diffstat (limited to 'lisp/battery.el')
-rw-r--r-- | lisp/battery.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/battery.el b/lisp/battery.el index cd68d7601f9..3cff3167a6c 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -234,11 +234,11 @@ The text being displayed in the echo area is controlled by the variables (defcustom battery-update-functions nil "Functions run by `display-battery-mode' after updating the status. -These functions will be called with one parameter: An alist that -contains data about the current battery status. The key in the -alist is a character, and the values in the alist are strings. -Different battery backends deliver different information, so the -following information may or may not be available: +These functions will be called with one parameter, an alist that +contains data about the current battery status. The keys in the +alist are single characters and the values are strings. +Different battery backends deliver different information, so some +of the following information may or may not be available: v: driver-version V: bios-version @@ -275,9 +275,9 @@ The text displayed in the mode line is controlled by The mode line is be updated every `battery-update-interval' seconds. -The update function will call the functions in -`battery-update-functions', which can be used to trigger actions -based on battery events." +The function which updates the mode-line display will call the +functions in `battery-update-functions', which can be used to +trigger actions based on battery-related events." :global t (setq battery-mode-line-string "") (or global-mode-string (setq global-mode-string '(""))) |