diff options
author | Masashi Fujimoto <masfj.dev@gmail.com> | 2013-10-23 15:44:28 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-10-23 15:44:28 -0400 |
commit | d5f1282f05c6ea7ad7abb9c27d784e09faa45e4a (patch) | |
tree | 78d1312c55dc000d5d31916c7f41fc268fd9fe8e /lisp/battery.el | |
parent | 03d44565bbbea492e5280e153150a768ca7f2c45 (diff) | |
download | emacs-d5f1282f05c6ea7ad7abb9c27d784e09faa45e4a.tar.gz |
* lisp/battery.el (battery-pmset): Handle OS X Mavericks (tiny change)
Fixes: debbugs:15694
Diffstat (limited to 'lisp/battery.el')
-rw-r--r-- | lisp/battery.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/battery.el b/lisp/battery.el index d4e4d8b3a31..780278fc091 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -615,7 +615,7 @@ The following %-sequences are provided: (with-temp-buffer (ignore-errors (call-process "pmset" nil t nil "-g" "ps")) (goto-char (point-min)) - (when (re-search-forward "Currentl?y drawing from '\\(AC\\|Battery\\) Power'" nil t) + (when (re-search-forward "\\(?:Currentl?y\\|Now\\) drawing from '\\(AC\\|Battery\\) Power'" nil t) (setq power-source (match-string 1)) (when (re-search-forward "^ -InternalBattery-0[ \t]+" nil t) (when (looking-at "\\([0-9]\\{1,3\\}\\)%") |