From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Battery update Date: Thu, 07 Aug 2008 20:10:20 -0400 Message-ID: <87tzdwmknn.fsf@stupidchicken.com> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218154284 17325 80.91.229.12 (8 Aug 2008 00:11:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 00:11:24 +0000 (UTC) Cc: 643@emacsbugs.donarmstrong.com, Sven Joachim , emacs-devel@gnu.org To: Emre Sahin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 08 02:12:14 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 1KRFaR-0007Mm-Uq for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2008 02:12:08 +0200 Original-Received: from localhost ([127.0.0.1]:45656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRFZV-0003GV-92 for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 20:11:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRFYn-0002l4-Bj for emacs-devel@gnu.org; Thu, 07 Aug 2008 20:10:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRFYh-0002kV-M7 for emacs-devel@gnu.org; Thu, 07 Aug 2008 20:10:24 -0400 Original-Received: from [199.232.76.173] (port=52545 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRFYh-0002kS-Is for emacs-devel@gnu.org; Thu, 07 Aug 2008 20:10:19 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:43631 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRFYh-0007Mw-7x for emacs-devel@gnu.org; Thu, 07 Aug 2008 20:10:19 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 09F9B57E17D; Thu, 7 Aug 2008 20:10:20 -0400 (EDT) In-Reply-To: <87d4kko450.fsf@leonardo.iesahin.net> (Emre Sahin's message of "Fri, 08 Aug 2008 01:24:11 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:102183 Archived-At: 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?