From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=EF=BC=AF?= =?UTF-8?Q?=EF=BC=A6=EF=BC=A6=EF=BC=A9=EF=BC=A3=EF=BC=A5=E3=80=80ZERO?= Newsgroups: gmane.emacs.bugs Subject: bug#643: Battery update Date: Sat, 9 Aug 2008 10:02:24 +0900 Message-ID: <006f01c8f9bb$9622c200$0100a8c0@yourhigxg9gyo4> References: <87bq04dbqc.fsf@stupidchicken.com> <87ej50g0ib.fsf@gmx.de><87bq048z7t.fsf@stupidchicken.com> <878wv8fxmr.fsf@gmx.de><87abfo4obc.fsf@stupidchicken.com> <873algfw2d.fsf@gmx.de><87bq04r2f8.fsf@stupidchicken.com><87d4kko450.fsf@leonardo.iesahin.net><87tzdwmknn.fsf@stupidchicken.com> <8763qbocx2.fsf@leonardo.iesahin.net> Reply-To: =?UTF-8?Q?=EF=BC=AF?= =?UTF-8?Q?=EF=BC=A6=EF=BC=A6=EF=BC=A9=EF=BC=A3=EF=BC=A5=E3=80=80ZERO?= , 643@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218247694 3065 80.91.229.12 (9 Aug 2008 02:08:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 02:08:14 +0000 (UTC) To: "Emre Sahin" , <643@emacsbugs.donarmstrong.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 09 04:09:04 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRdtA-0005iA-B8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 04:09:04 +0200 Original-Received: from localhost ([127.0.0.1]:37464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRdsE-0001rw-O2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 22:08:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRdre-0001PA-GO for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 22:07:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRdrb-0001Mh-Tk for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 22:07:28 -0400 Original-Received: from [199.232.76.173] (port=37441 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRdrb-0001MS-Q4 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 22:07:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34642) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRdrb-0003UN-85 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 22:07:27 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7927NE1005318; Fri, 8 Aug 2008 19:07:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m791o901031759; Fri, 8 Aug 2008 18:50:09 -0700 X-Loop: don@donarmstrong.com Resent-From: =?UTF-8?Q?=EF=BC=AF?= =?UTF-8?Q?=EF=BC=A6=EF=BC=A6=EF=BC=A9=EF=BC=A3=EF=BC=A5=E3=80=80ZERO?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 09 Aug 2008 01:50:09 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 643 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 643-submit@emacsbugs.donarmstrong.com id=B643.121824630129780 (code B ref 643); Sat, 09 Aug 2008 01:50:09 +0000 Original-Received: (at 643) by emacsbugs.donarmstrong.com; 9 Aug 2008 01:45:01 +0000 Original-Received: from smtp.air.ocn.ne.jp (air.ocn.ne.jp [122.1.235.141]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m791isAC029745 for <643@emacsbugs.donarmstrong.com>; Fri, 8 Aug 2008 18:44:56 -0700 Original-Received: from yourhigxg9gyo4 (p8074-ipad514marunouchi.tokyo.ocn.ne.jp [60.39.135.74]) by smtp.air.ocn.ne.jp (Postfix) with SMTP id 115AC306A; Sat, 9 Aug 2008 10:02:21 +0900 (JST) X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-CrossAssassin-Score: 2 X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id m7927NE1005318 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 08 Aug 2008 22:07:28 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19170 Archived-At: =E9=85=8D=E4=BF=A1=E4=B8=8D=E8=A6=81 ----- Original Message -----=20 From: "Emre Sahin" To: "Chong Yidong" Cc: <643@emacsbugs.donarmstrong.com>; "Emre Sahin" ;=20 "Sven Joachim" ; Sent: Friday, August 08, 2008 10:26 PM Subject: bug#643: Battery update > Chong Yidong writes: > >> Emre Sahin 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 sys= fs > 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=20 > battery.el > should support them, battery.el interface should also change I think, > which is, IMHO, not necessary at the moment. > > Regards, > > Emre > > --=20 > 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 > > > >=20