unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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
>
>
>
> 







  parent reply	other threads:[~2008-08-09  1:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87bq04dbqc.fsf@stupidchicken.com>
2008-08-07 18:09 ` bug#643: Battery update Sven Joachim
2008-08-07 18:18 ` Lennart Borgman (gmail)
     [not found] ` <87ej50g0ib.fsf@gmx.de>
2008-08-07 18:19   ` Chong Yidong
     [not found]   ` <87bq048z7t.fsf@stupidchicken.com>
2008-08-07 19:11     ` Sven Joachim
     [not found]     ` <878wv8fxmr.fsf@gmx.de>
2008-08-07 19:28       ` Chong Yidong
     [not found]       ` <87abfo4obc.fsf@stupidchicken.com>
2008-08-07 19:45         ` Sven Joachim
     [not found]         ` <873algfw2d.fsf@gmx.de>
2008-08-07 20:32           ` Chong Yidong
     [not found]           ` <87bq04r2f8.fsf@stupidchicken.com>
2008-08-07 22:24             ` Emre Sahin
     [not found]             ` <87d4kko450.fsf@leonardo.iesahin.net>
2008-08-08  0:10               ` Chong Yidong
     [not found]               ` <87tzdwmknn.fsf@stupidchicken.com>
2008-08-08  5:56                 ` Sven Joachim
2008-08-08 13:26                 ` Emre Sahin
     [not found]                 ` <8763qbocx2.fsf@leonardo.iesahin.net>
2008-08-09  1:02                   ` OFFICE ZERO
2008-08-09  1:07                   ` OFFICE ZERO [this message]
2008-08-08  5:50             ` Sven Joachim
2008-08-08 17:56 ` Stefan Monnier
     [not found] ` <jwv3alfe6jc.fsf-monnier+emacsbugreports@gnu.org>
2008-08-09  1:00   ` OFFICE ZERO
2008-08-09 14:13   ` OFFICE ZERO
     [not found] ` <489B3C91.7010605@gmail.com>
2008-08-07 18:54   ` David De La Harpe Golden
     [not found]   ` <489B44D6.4020706@harpegolden.net>
2008-08-07 21:54     ` Emre Sahin
2008-08-11  0:10   ` T. V. Raman
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

  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='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 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).