comparison lisp/battery.el @ 32346:fa3f5e8f6201

(display-battery): Doc spelling fix.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Tue, 10 Oct 2000 01:35:09 +0000
parents 23cb074f9d88
children fb23c215bdc8
comparison
equal deleted inserted replaced
32345:8590f41e29c5 32346:fa3f5e8f6201
40 :group 'hardware) 40 :group 'hardware)
41 41
42 (defcustom battery-status-function 42 (defcustom battery-status-function
43 (cond ((and (eq system-type 'gnu/linux) 43 (cond ((and (eq system-type 'gnu/linux)
44 (file-readable-p "/proc/apm")) 44 (file-readable-p "/proc/apm"))
45 'battery-linux-proc-apm)) 45 'battery-linux-proc-apm))
46 "*Function for getting battery status information. 46 "*Function for getting battery status information.
47 The function have to return an alist of conversion definitions. 47 The function have to return an alist of conversion definitions.
48 Cons cells are of the form 48 Cons cells are of the form
49 49
50 (CONVERSION . REPLACEMENT-TEXT) 50 (CONVERSION . REPLACEMENT-TEXT)
99 "Battery status not available"))) 99 "Battery status not available")))
100 100
101 ;;;###autoload 101 ;;;###autoload
102 (defun display-battery () 102 (defun display-battery ()
103 "Display battery status information in the mode line. 103 "Display battery status information in the mode line.
104 The text beeing displayed in the mode line is controlled by the variables 104 The text being displayed in the mode line is controlled by the variables
105 `battery-mode-line-format' and `battery-status-function'. 105 `battery-mode-line-format' and `battery-status-function'.
106 The mode line will be updated automatically every `battery-update-interval' 106 The mode line will be updated automatically every `battery-update-interval'
107 seconds." 107 seconds."
108 (interactive) 108 (interactive)
109 (setq battery-mode-line-string "") 109 (setq battery-mode-line-string "")