]> git.eshelyaron.com Git - emacs.git/commit
New user option native-comp-async-on-battery-power
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 2 May 2025 04:04:26 +0000 (12:04 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 06:55:21 +0000 (08:55 +0200)
commite15fc92ab239f9249eaa0769878707a47cbba104
tree142e79aefb044fa0d0c9df56d86ab628e2cf2135
parent1b7db73feff2dc8c6c788262ac07cf7bfb02c8da
New user option native-comp-async-on-battery-power

* lisp/emacs-lisp/comp-run.el
(native-comp-async-on-battery-power): New option.
(battery-status-function): Declare.
(native--compile-skip-on-battery-p): New function.
(comp--run-async-workers): Call it.
* etc/NEWS: Announce the new option.

(cherry picked from commit 6b11687555cdd1d6896bad5eb09af217b28d6076)
lisp/emacs-lisp/comp-run.el