From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emre Sahin Newsgroups: gmane.emacs.devel Subject: Re: Battery update Date: Fri, 08 Aug 2008 01:24:11 +0300 Message-ID: <87d4kko450.fsf@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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218169039 16749 80.91.229.12 (8 Aug 2008 04:17:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 04:17:19 +0000 (UTC) Cc: 643@emacsbugs.donarmstrong.com, Emre Sahin , Sven Joachim , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 08 06:18:09 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRJQW-0003yv-Mc for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2008 06:18:08 +0200 Original-Received: from localhost ([127.0.0.1]:54042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRJPb-0003NO-3D for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2008 00:17:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRDuE-00068Y-Gu for emacs-devel@gnu.org; Thu, 07 Aug 2008 18:24:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRDuD-00067v-TO for emacs-devel@gnu.org; Thu, 07 Aug 2008 18:24:26 -0400 Original-Received: from [199.232.76.173] (port=44339 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRDuD-00067p-Oq for emacs-devel@gnu.org; Thu, 07 Aug 2008 18:24:25 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.155]:2611) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRDuD-0001Yw-BN for emacs-devel@gnu.org; Thu, 07 Aug 2008 18:24:25 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l26so366481fgb.30 for ; 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, 2) X-Mailman-Approved-At: Fri, 08 Aug 2008 00:12:58 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102188 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