Commit 248634e9 authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(battery-status-function): Don't use ignore-errors.

parent aa6f7b96
......@@ -49,10 +49,11 @@
(file-directory-p "/proc/acpi/battery"))
'battery-linux-proc-acpi)
((and (eq system-type 'darwin)
(ignore-errors
(condition-case nil
(with-temp-buffer
(and (eq (call-process "pmset" nil t nil "-g" "ps") 0)
(> (buffer-size) 0)))))
(> (buffer-size) 0)))
(error nil)))
'battery-pmset))
"*Function for getting battery status information.
The function has to return an alist of conversion definitions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment