1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; * lisp/battery.el (battery-bsd-apm): Explain a FIXME (bug#79040).

This commit is contained in:
Manuel Giraud 2025-07-17 14:22:26 +02:00 committed by Eli Zaretskii
parent fe3ac1575a
commit a05be41af7

View 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")