From c9bccf72cbaed5ca2fb5b829687886db92fa6d6b Mon Sep 17 00:00:00 2001 From: Marcin Borkowski Date: Sat, 20 Feb 2016 18:33:48 +1100 Subject: [PATCH] Report critical battery errors * lisp/battery.el (battery-pmset): Report critical battery errors (bug#18157). --- lisp/battery.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/battery.el b/lisp/battery.el index d0293697bef..b5e312f6c3e 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -628,12 +628,12 @@ The following %-sequences are provided: (cond ((looking-at "; charging") (setq battery-status "charging" battery-status-symbol "+")) - ((< (string-to-number load-percentage) battery-load-low) - (setq battery-status "low" - battery-status-symbol "-")) ((< (string-to-number load-percentage) battery-load-critical) (setq battery-status "critical" battery-status-symbol "!")) + ((< (string-to-number load-percentage) battery-load-low) + (setq battery-status "low" + battery-status-symbol "-")) (t (setq battery-status "high" battery-status-symbol ""))) -- 2.39.2