From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#643: Battery update Date: Thu, 07 Aug 2008 20:10:20 -0400 Message-ID: <87tzdwmknn.fsf__8396.98160202733$1218155333$gmane$org@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> Reply-To: Chong Yidong , 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 1218155276 19495 80.91.229.12 (8 Aug 2008 00:27:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 00:27:56 +0000 (UTC) Cc: 643@emacsbugs.donarmstrong.com, Sven Joachim , emacs-devel@gnu.org To: Emre Sahin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 02:28:37 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 1KRFqN-0002fN-Hr for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 02:28:36 +0200 Original-Received: from localhost ([127.0.0.1]:41613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRFpQ-0007bQ-II for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 20:27:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRFpL-0007ZK-Kx for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:27:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRFpK-0007Vu-4l for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:27:31 -0400 Original-Received: from [199.232.76.173] (port=53869 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRFpJ-0007Vj-TY for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:27:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45504) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRFpI-0000qP-W3 for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:27:29 -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 m780RNHe021159; Thu, 7 Aug 2008 17:27:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m780K5xE018545; Thu, 7 Aug 2008 17:20:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 08 Aug 2008 00:20:04 +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.121815422016603 (code B ref 643); Fri, 08 Aug 2008 00:20:04 +0000 Original-Received: (at 643) by emacsbugs.donarmstrong.com; 8 Aug 2008 00:10:20 +0000 Original-Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m780AHXP016440 for <643@emacsbugs.donarmstrong.com>; Thu, 7 Aug 2008 17:10:18 -0700 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) Resent-Date: Thu, 07 Aug 2008 20:27:31 -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:19128 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?