From: Marcin Borkowski Date: Sat, 20 Feb 2016 07:33:48 +0000 (+1100) Subject: Report critical battery errors X-Git-Tag: emacs-25.0.92~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9bccf72cbaed5ca2fb5b829687886db92fa6d6b;p=emacs.git Report critical battery errors * lisp/battery.el (battery-pmset): Report critical battery errors (bug#18157). --- 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 "")))