From: Lars Ingebrigtsen <larsi@gnus.org>
To: "T.V Raman" <raman@google.com>
Cc: 55770@debbugs.gnu.org
Subject: bug#55770: 29.0.50; Feature Request: Hook When battery transitions to low or critical
Date: Fri, 03 Jun 2022 05:57:41 +0200 [thread overview]
Message-ID: <87h752bdqi.fsf@gnus.org> (raw)
In-Reply-To: <p917d5zxbzq.fsf@retriever.mtv.corp.google.com> (T. V. Raman's message of "Thu, 02 Jun 2022 09:32:09 -0700")
"T.V Raman" <raman@google.com> writes:
> Maybe we should have a hook that would be run by the battery.el's
> timer function, then you could write a hook function to do whatever
> you want, including playing a sound.
Good idea. I've now added this to Emacs 29 as
`battery-update-functions'. (The doc string has an example function
that plays an alarm.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-06-03 3:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-02 16:32 bug#55770: 29.0.50; Feature Request: Hook When battery transitions to low or critical T.V Raman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-03 3:57 ` Lars Ingebrigtsen [this message]
2022-06-03 14:06 ` T.V Raman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-03 16:39 ` T.V Raman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-03 17:49 ` Eli Zaretskii
2022-06-03 18:00 ` T.V Raman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-03 18:40 ` Eli Zaretskii
2022-06-03 20:09 ` T.V Raman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-04 2:01 ` Phil Sainty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h752bdqi.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=55770@debbugs.gnu.org \
--cc=raman@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).