From: OFFICE ZERO <hi-oh230@air.ocn.ne.jp>
To: "Emre Sahin" <i.emre.sahin@gmail.com>, <643@emacsbugs.donarmstrong.com>
Subject: bug#643: Battery update
Date: Sat, 9 Aug 2008 10:07:42 +0900 [thread overview]
Message-ID: <009b01c8f9bc$538a0060$0100a8c0@yourhigxg9gyo4> (raw)
In-Reply-To: 8763qbocx2.fsf@leonardo.iesahin.net
配信不要
----- Original Message -----
From: "Emre Sahin" <i.emre.sahin@gmail.com>
To: "Chong Yidong" <cyd@stupidchicken.com>
Cc: <643@emacsbugs.donarmstrong.com>; "Emre Sahin" <mail@emresahin.net>;
"Sven Joachim" <svenjoac@gmx.de>; <emacs-devel@gnu.org>
Sent: Friday, August 08, 2008 10:26 PM
Subject: bug#643: Battery update
> Chong Yidong <cyd@stupidchicken.com> writes:
>
>> 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?
>
> This looks OK. It fills %p in battery-mode-line-format and gives
> an equal value with "acpi -b".
>
> Thank you. I may try to retrieve other (available) information from sysfs
> interface by looking your code. I don't know if Sven has anything to
> add about interface though.
>
> I think the interface change is thought for multi-battery systems. If
> battery.el
> should support them, battery.el interface should also change I think,
> which is, IMHO, not necessary at the moment.
>
> Regards,
>
> Emre
>
> --
> I. Emre Sahin @ Ankara, Turkey
> Software Developer & Consultant @ http://ydyazilim.com
> Ph.D. Candidate @ http://cs.bilkent.edu.tr
> Blogger, Writer, Poet @ http://emresahin.net
> Maybe hears the phone @ +90 532 261 8985
> Maybe gtalk (or jabber) @ i.emre.sahin@gmail.com
>
>
>
>
next prev parent reply other threads:[~2008-08-09 1:07 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 16:35 Battery update Chong Yidong
2008-08-07 18:09 ` bug#643: " Sven Joachim
2008-08-07 18:09 ` Sven Joachim
2008-08-07 18:19 ` Chong Yidong
2008-08-07 19:11 ` Sven Joachim
2008-08-07 19:28 ` Chong Yidong
2008-08-07 19:45 ` Sven Joachim
2008-08-07 20:32 ` Chong Yidong
2008-08-07 22:24 ` bug#643: " Emre Sahin
2008-08-07 22:24 ` Emre Sahin
2008-08-08 0:10 ` bug#643: " Chong Yidong
2008-08-08 0:10 ` Chong Yidong
2008-08-08 5:56 ` Sven Joachim
2008-08-08 8:19 ` Eli Zaretskii
2008-08-08 10:52 ` Johannes Weiner
2008-08-08 5:56 ` bug#643: " Sven Joachim
2008-08-08 13:26 ` Emre Sahin
2008-08-08 13:26 ` Emre Sahin
2008-08-09 1:02 ` bug#643: " OFFICE ZERO
2008-08-09 1:07 ` OFFICE ZERO [this message]
2008-08-08 5:50 ` Sven Joachim
2008-08-08 5:50 ` Sven Joachim
2008-08-07 20:32 ` bug#643: " Chong Yidong
2008-08-07 19:45 ` Sven Joachim
2008-08-07 19:28 ` Chong Yidong
2008-08-07 19:11 ` Sven Joachim
2008-08-07 18:19 ` Chong Yidong
2008-08-07 18:18 ` Lennart Borgman (gmail)
2008-08-07 18:36 ` Óscar Fuentes
2008-08-07 18:54 ` David De La Harpe Golden
2008-08-07 21:54 ` Emre Sahin
2008-08-07 21:54 ` Emre Sahin
2008-08-07 18:54 ` David De La Harpe Golden
2008-08-10 10:14 ` Yoni Rabkin
2008-08-11 0:10 ` T. V. Raman
2008-08-11 0:10 ` T. V. Raman
2008-08-07 18:18 ` Lennart Borgman (gmail)
2008-08-08 17:56 ` Stefan Monnier
2008-08-08 17:56 ` Stefan Monnier
2008-08-09 1:00 ` bug#643: " OFFICE ZERO
2008-08-09 14:13 ` OFFICE ZERO
-- strict thread matches above, loose matches on Subject: below --
2008-08-07 16:35 Chong Yidong
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='009b01c8f9bc$538a0060$0100a8c0@yourhigxg9gyo4' \
--to=hi-oh230@air.ocn.ne.jp \
--cc=643@emacsbugs.donarmstrong.com \
--cc=i.emre.sahin@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.