bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55770: 29.0.50; Feature Request: Hook When battery transitions to lo


From: Eli Zaretskii
Subject: bug#55770: 29.0.50; Feature Request: Hook When battery transitions to low or critical
Date: Fri, 03 Jun 2022 20:49:48 +0300

> Cc: 55770@debbugs.gnu.org
> Date: Fri, 03 Jun 2022 09:39:10 -0700
> From:  "T.V Raman" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 
> Lookeding at this more closely,
> default value of battery-update-interval is 60s which might be okay for
> updating modeline; will having other functions here prove to be an
> efficiency hit?
> 
> For instance, if playing a sound on entering critical state,  one might
> well end up implementing some more logic to decide how often to play a sound.

battery-update-interval is also a defcustom, so you can make it
smaller if you need.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]