From: "Stefan van der Walt" <stefanv@berkeley.edu>
To: emacs-orgmode@gnu.org
Subject: org-timer: let done hook access time, allow silencing notification
Date: Fri, 10 Jan 2025 12:09:56 -0800 [thread overview]
Message-ID: <a25376e4-f6f6-421d-a8f2-ce280e8d2b15@app.fastmail.com> (raw)
Hi all,
I have two small improvement suggestions for org-timer, and would like to hear your thoughts.
1. I use org-timer to run pomodoro-style clocks. When the timer finishes, I would like to generate a log entry. It would be helpful to be able to access the duration of the clock; however, in org-timer--run-countdown-timer, the variable org-timer-start-time is reset BEFORE the org-timer-done-hook is run.
Could we reset the variable *after* the hooks are run instead, so that they can access the timer value?
2. I have a custom notification for when the timer is done, installed via the done hook. I would like to suppress the existing notification, but there seems to be no option to do so. Would it make sense to provide a mechanism to override/silence the notification?
Thanks!
Stéfan
reply other threads:[~2025-01-10 20:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a25376e4-f6f6-421d-a8f2-ce280e8d2b15@app.fastmail.com \
--to=stefanv@berkeley.edu \
--cc=emacs-orgmode@gnu.org \
/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/org-mode.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).