From bed6d708744793275ccb9daf258e6c6a6a1618b0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 14 Aug 2004 12:21:03 +0000 Subject: [PATCH] (battery-linux-proc-acpi): Look into battery directories matching the literal string "CMB", too (required for Linux kernel version 2.6.7). --- lisp/battery.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/battery.el b/lisp/battery.el index 73d78067571..3b44ff891f9 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -290,7 +290,7 @@ The following %-sequences are provided: 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 -- 2.39.2