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

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

bug#643: Battery update


From: Chong Yidong
Subject: bug#643: Battery update
Date: Thu, 07 Aug 2008 20:10:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Emre Sahin <mail@emresahin.net> writes:

> Maybe I did something wrong with diff & patch; this is my first
> adventure with them in practice. (Yes, really!)
>
> Message is something like: 
>
> Loading /home/iesahin/site-lisp/battery.el (source)...done
> setq: Wrong type argument: listp, "/sys/class/power_supply/AC/online"

No, it was a typo in the patch.  Could you replace the line

       (if (battery-search-for-one-match-in-files
            "/sys/class/power_supply/AC/online" "1" 0)
           "AC"

on line 471 of the battery.el, with

       (if (battery-search-for-one-match-in-files
            (list "/sys/class/power_supply/AC/online") "1" 0)
           "AC"

and try again?






reply via email to

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