bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

battery.el patch


From: Ralph Schleicher
Subject: battery.el patch
Date: 09 Aug 2004 22:25:02 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Hi,

below is a patch Kurt Hornik sent to me last week fixing a problem with
the latest Linux kernel.  The patch is against battery.el version 1.19
from Emacs CVS.  Thanks.


2004-08-09  Kurt Hornik  <address@hidden>

        * battery.el (battery-linux-proc-acpi): Look into battery
        directories matching the literal string CMB, too (required
        for Linux 2.6.7).


--- battery.el~ 2004-08-09 21:40:34.000000000 +0200
+++ battery.el  2004-08-09 21:49:21.000000000 +0200
@@ -290,7 +290,7 @@
                                      nil t)
               (setq low (+ (or low 0)
                            (string-to-int (match-string 1))))))))
-       (directory-files "/proc/acpi/battery/" t "BAT")))
+       (directory-files "/proc/acpi/battery/" t "\\(BAT\\|CMB\\)")))
     (and capacity rate
         (setq minutes (if (zerop rate) 0
                         (floor (* (/ (float (if (string= charging-state


-- 
Ralph




reply via email to

[Prev in Thread] Current Thread [Next in Thread]