emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8c8a54dd23: ; * lisp/battery.el (battery-bsd-apm): No need for `e


From: Stefan Kangas
Subject: master 8c8a54dd23: ; * lisp/battery.el (battery-bsd-apm): No need for `executable-find'.
Date: Thu, 6 Oct 2022 14:07:45 -0400 (EDT)

branch: master
commit 8c8a54dd23c90f108f340f015e8cd91ccdb9cc94
Author: Manuel Giraud <manuel@ledu-giraud.fr>
Commit: Stefan Kangas <stefankangas@gmail.com>

    ; * lisp/battery.el (battery-bsd-apm): No need for `executable-find'.
---
 lisp/battery.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/battery.el b/lisp/battery.el
index a874f0640e..8de80109c6 100644
--- a/lisp/battery.el
+++ b/lisp/battery.el
@@ -938,16 +938,14 @@ The following %-sequences are provided:
 %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'?
-                        (battery--call-process-to-string
-                         (executable-find "uname")))))
+                        (battery--call-process-to-string "uname"))))
          (apm-flag (pcase os-name
                      ("OpenBSD" "mP")
                      ("FreeBSD" "st")
                      (_         "ms")))
          (apm-args (concat "-abl" apm-flag))
          (apm-output (split-string
-                      (battery--call-process-to-string
-                       (executable-find "apm") apm-args)))
+                      (battery--call-process-to-string "apm" apm-args)))
          (indices (pcase os-name
                     ;; FreeBSD's manpage documents that multiple
                     ;; outputs are ordered by "the order in which



reply via email to

[Prev in Thread] Current Thread [Next in Thread]