From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emre Sahin Newsgroups: gmane.emacs.bugs Subject: bug#643: Battery update Date: Fri, 08 Aug 2008 01:24:11 +0300 Message-ID: <87d4kko450.fsf__10120.5655061223$1218169152$gmane$org@leonardo.iesahin.net> 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> Reply-To: Emre Sahin , 643@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218169095 16854 80.91.229.12 (8 Aug 2008 04:18:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 04:18:15 +0000 (UTC) Cc: 643@emacsbugs.donarmstrong.com, Emre Sahin , Sven Joachim , emacs-devel@gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 06:19: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 1KRJRO-0004BY-1C for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 06:19:02 +0200 Original-Received: from localhost ([127.0.0.1]:54457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRJQS-0004NC-Ac for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 00:18:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KREGX-0003sX-PZ for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 18:47:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KREGV-0003qF-Re for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 18:47:29 -0400 Original-Received: from [199.232.76.173] (port=40396 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KREGV-0003q4-IH for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 18:47:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41928) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KREGU-0004kA-L0 for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 18:47: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 m77MlNZ8022773; Thu, 7 Aug 2008 15:47:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m77MZ5xu018712; Thu, 7 Aug 2008 15:35:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Emre Sahin Original-Sender: Emre Sahin Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 Aug 2008 22:35:05 +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.121814792316784 (code B ref 643); Thu, 07 Aug 2008 22:35:05 +0000 Original-Received: (at 643) by emacsbugs.donarmstrong.com; 7 Aug 2008 22:25:23 +0000 Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m77MOPbW015567 for <643@emacsbugs.donarmstrong.com>; Thu, 7 Aug 2008 15:24:44 -0700 Original-Received: by fg-out-1718.google.com with SMTP id l27so579638fgb.43 for <643@emacsbugs.donarmstrong.com>; Thu, 07 Aug 2008 15:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:in-reply-to :user-agent:references:from:date:message-id:mime-version :content-type:sender; bh=id67pJgo1mFKb1+08DhSbUGzDsC1hg2hEENt6bxQnAU=; b=VWxzx7tiGE9/WFsF+yF2l5LFLH/E41aQSzC0V3QvjrxstVkTmJa8z8bVIQnvaZXfut 27j+9Kcg/SQZ5GSIL0kbeCAd8KzuEdT3fKLhibCoqoEtuTgR8M0R4HlBAff9PD+PtfWt 6sgeyzyeNwV73b9mQV6FqExrnnGV3xPt3Z3DE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:in-reply-to:user-agent:references:from:date :message-id:mime-version:content-type:sender; b=WTnwV3vhS7LNDGWIyrB/A1agp0TaR6bHko3DooUGrViyAifcu54lDQiJ7VQGrF8xM6 V4oHB/XPWxgwEsBEFuvYWVq1nh4Z1xqBriPZwag80dpv/8yMgIB8IXaNNWnkBxiSl+yE WQW7LyTVn/fk8H3olEVGufO19pQSnyfLB9nBk= Original-Received: by 10.86.79.19 with SMTP id c19mr1791475fgb.67.1218147864115; Thu, 07 Aug 2008 15:24:24 -0700 (PDT) Original-Received: from leonardo.iesahin.net.emresahin.net ( [81.214.248.165]) by mx.google.com with ESMTPS id d4sm336557fga.8.2008.08.07.15.24.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 15:24:23 -0700 (PDT) In-Reply-To: <87bq04r2f8.fsf@stupidchicken.com> (Chong Yidong's message of "Thu\, 07 Aug 2008 16\:32\:59 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 07 Aug 2008 18:47:28 -0400 X-Mailman-Approved-At: Fri, 08 Aug 2008 00:12:13 -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:19131 Archived-At: Chong Yidong writes: > Sven Joachim writes: > >>> What about (from the shell) >>> >>> cat /sys/class/power_supply/BAT0/uevent >> >> POWER_SUPPLY_VOLTAGE_NOW=12444000 >> POWER_SUPPLY_CURRENT_NOW=0 >> POWER_SUPPLY_CHARGE_FULL_DESIGN=4000000 >> POWER_SUPPLY_CHARGE_FULL=3985000 >> POWER_SUPPLY_CHARGE_NOW=3985000 >> POWER_SUPPLY_MODEL_NAME=GC86503SY90 >> POWER_SUPPLY_MANUFACTURER=SONY >> POWER_SUPPLY_SERIAL_NUMBER= > > Maybe it's a Lisp integer overflow (I'm guessing you're on a 32-bit > machine). Does the following patch give better results? 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" 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