unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lute Kamstra <Lute.Kamstra.news@xs4all.nl>
Cc: bug-emacs@gnu.org
Subject: Re: Emacs Battery mode cannot use iBook
Date: Mon, 27 Jun 2005 10:47:43 +0200	[thread overview]
Message-ID: <87r7eoyymo.fsf@xs4all.nl> (raw)
In-Reply-To: <20050626023526.99DEF23EF6D@ws5-4.us4.outblaze.com> (Sam Lauber's message of "Sun, 26 Jun 2005 03:35:26 +0100")

"Sam Lauber" <sam124@operamail.com> writes:

> I have a iBook G4 w/ Mac OS X.  I installed the Carbon Emacs from June '05.  
> But the Battery mode does not know about the Mac OS X programs for
> battery status, so it dosen't know the battery status for the laptop when
> the system provides this information already.  
>
> Samuel Lauber
>
> P.S.  The battery information can be found by calling the program `pmset
> -g ps'; it outputs information in the following format:
>
>   Currenty drawing from 'POWER_SRC Power'
>    -InternalBattery-0     XX%; STATUS; ESTIMATE
>
> where `POWER_SRC' is either AC or Battery.  XX is the percentage of charge.  
> (N.B.  It is never 100%; the highest value that my iBook will give is 99%).  
> STATUS is either `AC attached' (power adapter plugged in and battery fully
> charged), `discharging' (running off battery power and taking power out of
> the battery), or `charging' (charging up).  If the battery is out, the entire
> `XX%; STATUS...' line is replated with `(removed)'.  Note that the first
> line has a typo.  It might get fixed, so don't rely on it.  

battery.el currently only knows how to get battery information from a
Linux kernel.  I'll see if I can add support for iBooks running OS X.
Is calling "pmset -g ps" the canonical way to get battery information
on OS X?  (Is that program typically installed?)

Lute.

  reply	other threads:[~2005-06-27  8:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-26  2:35 Emacs Battery mode cannot use iBook Sam Lauber
2005-06-27  8:47 ` Lute Kamstra [this message]
2005-06-27  9:24   ` Arne Jørgensen
  -- strict thread matches above, loose matches on Subject: below --
2005-06-27 20:04 Sam Lauber
2005-06-28  0:53 Sam Lauber
2005-06-28 21:14 Sam Lauber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r7eoyymo.fsf@xs4all.nl \
    --to=lute.kamstra.news@xs4all.nl \
    --cc=bug-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).