# HG changeset patch # User Lute Kamstra # Date 1123766927 0 # Node ID 08b55dc9bcd1180a61729143387948af3a980b89 # Parent 63dd464bce2d902d46da61c1ca9b7b48cd3abfa2 (battery-status-function): Don't use ignore-errors. diff -r 63dd464bce2d -r 08b55dc9bcd1 lisp/battery.el --- a/lisp/battery.el Thu Aug 11 10:24:48 2005 +0000 +++ b/lisp/battery.el Thu Aug 11 13:28:47 2005 +0000 @@ -49,10 +49,11 @@ (file-directory-p "/proc/acpi/battery")) 'battery-linux-proc-acpi) ((and (eq system-type 'darwin) - (ignore-errors - (with-temp-buffer - (and (eq (call-process "pmset" nil t nil "-g" "ps") 0) - (> (buffer-size) 0))))) + (condition-case nil + (with-temp-buffer + (and (eq (call-process "pmset" nil t nil "-g" "ps") 0) + (> (buffer-size) 0))) + (error nil))) 'battery-pmset)) "*Function for getting battery status information. The function has to return an alist of conversion definitions.