49 |
(file-directory-p "/proc/acpi/battery")) |
(file-directory-p "/proc/acpi/battery")) |
50 |
'battery-linux-proc-acpi) |
'battery-linux-proc-acpi) |
51 |
((and (eq system-type 'darwin) |
((and (eq system-type 'darwin) |
52 |
(ignore-errors |
(condition-case nil |
53 |
(with-temp-buffer |
(with-temp-buffer |
54 |
(and (eq (call-process "pmset" nil t nil "-g" "ps") 0) |
(and (eq (call-process "pmset" nil t nil "-g" "ps") 0) |
55 |
(> (buffer-size) 0))))) |
(> (buffer-size) 0))) |
56 |
|
(error nil))) |
57 |
'battery-pmset)) |
'battery-pmset)) |
58 |
"*Function for getting battery status information. |
"*Function for getting battery status information. |
59 |
The function has to return an alist of conversion definitions. |
The function has to return an alist of conversion definitions. |