Arne Jørgensen <[EMAIL PROTECTED]> writes: > Lute Kamstra <[EMAIL PROTECTED]> writes: > > [...] > >> 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? > > On my iBook G4 with Mac OS X 10.3 "pmset -g ps" has zero as exit code > and no information as output.
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"))) and send me the "~/pmset.txt" file it creates as an attachment? Lute. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel