From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#58307: 29.0.50; Fix battery mode over TRAMP on *BSD Date: Wed, 5 Oct 2022 15:51:35 -0700 Message-ID: References: <87ilkyfhlo.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23444"; mail-complaints-to="usenet@ciao.gmane.io" To: Manuel Giraud , 58307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 06 00:52:24 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogDFX-0005tG-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 00:52:23 +0200 Original-Received: from localhost ([::1]:58320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogDFV-0001iv-R1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 18:52:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogDFD-0001gb-Fw for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 18:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogDFD-0003y4-8J for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 18:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogDFC-0000Hg-Ui for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 18:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 22:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58307 X-GNU-PR-Package: emacs Original-Received: via spool by 58307-submit@debbugs.gnu.org id=B58307.16650103051047 (code B ref 58307); Wed, 05 Oct 2022 22:52:02 +0000 Original-Received: (at 58307) by debbugs.gnu.org; 5 Oct 2022 22:51:45 +0000 Original-Received: from localhost ([127.0.0.1]:58307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogDEv-0000Gl-9p for submit@debbugs.gnu.org; Wed, 05 Oct 2022 18:51:45 -0400 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:46071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogDEr-0000GX-Gg for 58307@debbugs.gnu.org; Wed, 05 Oct 2022 18:51:42 -0400 Original-Received: by mail-oi1-f178.google.com with SMTP id o64so134688oib.12 for <58307@debbugs.gnu.org>; Wed, 05 Oct 2022 15:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date; bh=ds1Zh9ql2rEMAuurCeqNCO8X0KZXECUzl6a7CplS554=; b=RpHAuvSv+p4rq7P3HeLomouXnK2wRO5oWSXtf0OEXrlmxrVzgFbyAUsSjMKWdWe7mB GQW7QQ3JFc8WfdiveNkUscHZzd/gkbbKs8R/zoYtWG92V4x3w9S2XcaOLD4fvLe7U3io ZpsXOujoZVu7b2bnzEuXHnPzalJXqXNRZ594KNyjkvFQTWqXtCYXiWrskSU/uAMkRR68 0SGuUYRkuuxwCInch0gKbmxHB93CUrlZN0Fchl+GQt2rREt/VmHsjUq/jcvGGh/cY4E5 jk29v/EGSiqZFreqyw7Jf4eDrImcev/gy/SG3kU2GQR5tqFyE4RqheoLIAIuLgKsJ6Cw RRTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date; bh=ds1Zh9ql2rEMAuurCeqNCO8X0KZXECUzl6a7CplS554=; b=bHc5GjaFWvRtBIbmqLQ7k+EFsrAb4gs/83HP08VMVIF+LbCtIskcNPPceqL1za1Uvw KPihlAggGKtwZoS4UYH28CqSrsVdUw+6B2PPquGfJxv+hyMm/MEvlk7NZG5JI+atu/PD i7D8JfsiNLRTyeeRnGecMNTpZqok8QZu6MAcjxa4l4rGsMVyWl+74gcdsA5dXnEkzIN2 ZxQwk1aRyyy5hwYMlC5jCnedPFLig8bjtL00bBnJx73tBz48wh9FoROznI55+nPNmLo1 NwCoubbZys1cUNnujjNVxpndYBV/Rm1EHOCcrZn0HHqw60moEpeuWXy9iFRKkl0coVZG MSyA== X-Gm-Message-State: ACrzQf34MgYW01UpW5AJWOnim2IeqQlU9i40e01P2VMNNyvfmJyS8myM 3MrI1gyC2w4+nFaiPKQzcCIBKTS5v0eYGC9jm7WfiScd X-Google-Smtp-Source: AMsMyM4fb6ZRNmnO71340cWvqoLxaND+mrLPkjehUIlDA1tca6Tb2E9tTmM0YG1hshGWVDXTanZRY0gl8GfnMIv9UYU= X-Received: by 2002:a05:6808:1a09:b0:350:1e6a:e469 with SMTP id bk9-20020a0568081a0900b003501e6ae469mr3306287oib.92.1665010295713; Wed, 05 Oct 2022 15:51:35 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 5 Oct 2022 15:51:35 -0700 In-Reply-To: <87ilkyfhlo.fsf@elite.giraud> X-Hashcash: 1:20:221005:58307@debbugs.gnu.org::RvgZbvhhkfncDl9Z:3V15 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244578 Archived-At: Manuel Giraud writes: > @@ -929,13 +933,13 @@ battery-bsd-apm > %t Remaining time (to charge or discharge) in the form `h:min'" > (let* ((os-name (car (split-string > ;; FIXME: Can't we use something like `system-type'? > - (shell-command-to-string "/usr/bin/uname")))) > + (call-process-to-string "/usr/bin/uname")))) Here's a minor nit: I realize that the OpenBSD folks are not likely to move uname to /bin (which is its location on my GNU/Linux system, for example), but I'd probably still prefer (executable-find "uname") to hard coding its location.