From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Darwin support for lisp/battery.el. Date: Mon, 04 Jul 2005 09:39:41 +0200 Message-ID: <87y88nvx36.fsf@xs4all.nl> References: <8764vtxusp.fsf@xs4all.nl> <85mzp3a8am.fsf@lola.goethe.zz> <87d5pz8qoq.fsf@xs4all.nl> <851x6fa4pa.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120465095 15567 80.91.229.2 (4 Jul 2005 08:18:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2005 08:18:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 04 10:18:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DpM9S-0008PR-Ur for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2005 10:18:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpMAe-0007of-Pg for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2005 04:19:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpLoI-0002UQ-II for emacs-devel@gnu.org; Mon, 04 Jul 2005 03:56:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpLoG-0002UD-KX for emacs-devel@gnu.org; Mon, 04 Jul 2005 03:56:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpLnZ-00025j-FA for emacs-devel@gnu.org; Mon, 04 Jul 2005 03:55:25 -0400 Original-Received: from [194.109.24.32] (helo=smtp-vbr12.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DpLe7-0003iw-4f for emacs-devel@gnu.org; Mon, 04 Jul 2005 03:45:39 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr12.xs4all.nl (8.13.3/8.13.3) with ESMTP id j647dgH2049541; Mon, 4 Jul 2005 09:39:42 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DpLYL-0001h2-00; Mon, 04 Jul 2005 09:39:41 +0200 Original-To: Ken Raeburn In-Reply-To: (Ken Raeburn's message of "Sun, 3 Jul 2005 22:41:30 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 16 X-Virus-Scanned: by XS4ALL Virus Scanner 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:40315 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40315 Ken Raeburn writes: [...] > (And, BTW, the "-g ps" arguments given don't seem to do anything on my > laptop running 10.3, kernel 7.9.0; I don't know if that means it's > just not a supported option on my laptop for some reason, which would > seem kind of strange, or if the "ps" option wasn't added until 10.4.) My patch tries to test whether pmset supports "-g ps" by looking at the exit code. Does "pmset -g ps" return a non-zero exit code on your system? Do you know of a way to get battery information on your system? Lute.