[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/battery.el
From: |
Lute Kamstra |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/battery.el |
Date: |
Thu, 11 Aug 2005 09:28:47 -0400 |
Index: emacs/lisp/battery.el
diff -c emacs/lisp/battery.el:1.29 emacs/lisp/battery.el:1.30
*** emacs/lisp/battery.el:1.29 Sat Aug 6 22:13:41 2005
--- emacs/lisp/battery.el Thu Aug 11 13:28:47 2005
***************
*** 49,58 ****
(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)))))
'battery-pmset))
"*Function for getting battery status information.
The function has to return an alist of conversion definitions.
--- 49,59 ----
(file-directory-p "/proc/acpi/battery"))
'battery-linux-proc-acpi)
((and (eq system-type 'darwin)
! (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.