/[emacs]/emacs/lisp/battery.el
ViewVC logotype

Diff of /emacs/lisp/battery.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by ttn, Sat Aug 6 22:13:41 2005 UTC revision 1.30 by lute, Thu Aug 11 13:28:47 2005 UTC
# Line 49  Line 49 
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.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26