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:
parent
fe3ac1575a
commit
a05be41af7
1 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue