* lisp/battery.el (battery-pmset): Handle OS X Mavericks (tiny change)
Fixes: debbugs:15694
This commit is contained in:
parent
03d44565bb
commit
d5f1282f05
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-10-23 Masashi Fujimoto <masfj.dev@gmail.com> (tiny change)
|
||||
|
||||
* battery.el (battery-pmset): Handle OS X Mavericks. (Bug#15694)
|
||||
|
||||
2013-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-smie-rules): Only align with parent of
|
||||
|
|
|
@ -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\\}\\)%")
|
||||
|
|
Loading…
Add table
Reference in a new issue