From: Ralph Schleicher <rs@nunatak.allgaeu.org>
Subject: battery.el patch
Date: 09 Aug 2004 22:25:02 +0200 [thread overview]
Message-ID: <874qnc83fl.fsf@bravo.nunatak.allgaeu.org> (raw)
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 <Kurt.Hornik@wu-wien.ac.at>
* 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
next reply other threads:[~2004-08-09 20:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 20:25 Ralph Schleicher [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-09-14 20:33 battery.el patch Ralph Schleicher
[not found] ` <E1C7bwj-0001T6-HR@fencepost.gnu.org>
2004-09-15 21:59 ` Ralph Schleicher
2007-01-07 10:01 Ralph Schleicher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874qnc83fl.fsf@bravo.nunatak.allgaeu.org \
--to=rs@nunatak.allgaeu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).