unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Cc: emacs-devel@gnu.org
Subject: Re: Darwin support for lisp/battery.el.
Date: Mon, 04 Jul 2005 12:43:31 +0200	[thread overview]
Message-ID: <874qbax358.fsf@xs4all.nl> (raw)
In-Reply-To: <87pstysxke.fsf@seamus.arnested.dk> (Arne Jørgensen's message of "Mon, 04 Jul 2005 11:57:37 +0200")

Arne Jørgensen <arne@arnested.dk> writes:

> Lute Kamstra <Lute.Kamstra.lists@xs4all.nl> skriver:
>
>> Apparently that option was added in OS X 10.4.  Strange that pmset
>> doesn't signal an error with its exit code when it gets passed an
>> unknown option.  Maybe I can test for a working version of pmset in
>> some other way.  Could you eval this:
>>
>>   (with-temp-file "~/pmset.txt"
>>     (ignore-errors (call-process "pmset" nil t nil "-g" "ps")))
>
> It evaluates to 0.
>
>> and send me the "~/pmset.txt" file it creates as an attachment?
>
> And the created file is empty (no need to attach it).

Thanks.  Then this test should work:

(and (eq system-type 'darwin)
     (ignore-errors 
       (with-temp-buffer 
	 (and (eq (call-process "pmset" nil t nil "-g" "ps") 0)
	      (> (buffer-size) 0)))))

Lute.

  parent reply	other threads:[~2005-07-04 10:43 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 [this message]
2005-07-04  9:31             ` Ken Raeburn
2005-07-04  9:40               ` Ken Raeburn
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=874qbax358.fsf@xs4all.nl \
    --to=lute.kamstra.lists@xs4all.nl \
    --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).