From d79b6486a72825ff9e155381166a400a6b8b0ca8 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Thu, 17 Jul 2025 14:22:26 +0200 Subject: [PATCH] ; * lisp/battery.el (battery-bsd-apm): Explain a FIXME (bug#79040). (cherry picked from commit a05be41af713bd02a28659078ba1acc82ba66ae4) --- lisp/battery.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/battery.el b/lisp/battery.el index a738c3ed131..a7962e046a0 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -951,7 +951,10 @@ The following %-sequences are provided: %h Remaining time (to charge or discharge) in hours %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'? + ;; We cannot use `system-type' because some BSD + ;; systems fall under the 'berkley-unix umbrella + ;; and we're trying to make the distinction + ;; among them here. (battery--call-process-to-string "uname")))) (apm-flag (pcase os-name ("OpenBSD" "mP") -- 2.39.5