]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/battery.el (battery-bsd-apm): Explain a FIXME (bug#79040).
authorManuel Giraud <manuel@ledu-giraud.fr>
Thu, 17 Jul 2025 12:22:26 +0000 (14:22 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 11:57:15 +0000 (13:57 +0200)
(cherry picked from commit a05be41af713bd02a28659078ba1acc82ba66ae4)

lisp/battery.el

index a738c3ed131225c7019b48ebad387b6e60c61777..a7962e046a0eb13edce1884647e562c2d017de90 100644 (file)
@@ -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")