From: Ken Raeburn <raeburn@raeburn.org>
Cc: emacs-devel@gnu.org
Subject: Re: Darwin support for lisp/battery.el.
Date: Mon, 4 Jul 2005 05:40:16 -0400 [thread overview]
Message-ID: <f6532a2e20d738fec7b978956c7c07e0@raeburn.org> (raw)
In-Reply-To: <c5127847fa380b018a4319d71d2577eb@raeburn.org>
On Jul 4, 2005, at 05:31, Ken Raeburn wrote:
> I'm running 10.3.9, and at
> http://www.mitt-eget.com/software/macosx/#battery it says that the
> ioreg output format changed in 10.3.8, and again in 10.4, so parsing
> this may be a little annoying. However, there's also a link to a
> script which can parse the output, and comments describing what the
> author thinks many of the flags are; following its logic shouldn't be
> too hard. The tough part may be dealing with the amperage when it's
> nonzero -- apparently it's a 64-bit value which can be negative, but
> is displayed as unsigned. The emacs I've got on my system parses
> "18446744073709549763" and comes up with "-1", when what we want is
> "-1853".
Actually, that script didn't have a license in it, but perhaps the
author will let us just distribute it under suitable terms, for use on
OS versions where pmset doesn't give the info. That'll push the big
number parsing off onto awk...
Ken
next prev parent reply other threads:[~2005-07-04 9:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-02 12:21 Darwin support for lisp/battery.el Lute Kamstra
2005-07-02 13:49 ` David Kastrup
2005-07-02 14:33 ` Lute Kamstra
2005-07-02 15:16 ` David Kastrup
2005-07-03 20:42 ` Richard M. Stallman
2005-07-03 21:28 ` David Kastrup
2005-07-03 22:34 ` Lute Kamstra
2005-07-03 22:46 ` David Kastrup
2005-07-04 2:41 ` Ken Raeburn
2005-07-04 7:39 ` Lute Kamstra
2005-07-04 8:28 ` Arne Jørgensen
2005-07-04 9:44 ` Lute Kamstra
[not found] ` <87pstysxke.fsf@seamus.arnested.dk>
2005-07-04 10:43 ` Lute Kamstra
2005-07-04 9:31 ` Ken Raeburn
2005-07-04 9:40 ` Ken Raeburn [this message]
2005-07-06 11:42 ` Lute Kamstra
2005-07-06 13:05 ` Sean O'Rourke
2005-07-09 10:13 ` Lute Kamstra
2005-07-04 14:51 ` Richard M. Stallman
2005-07-04 15:30 ` David Kastrup
2005-07-05 16:12 ` Richard M. Stallman
2005-07-05 20:27 ` Aidan Kehoe
2005-07-03 22:32 ` Lute Kamstra
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=f6532a2e20d738fec7b978956c7c07e0@raeburn.org \
--to=raeburn@raeburn.org \
--cc=emacs-devel@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).