--- Begin Message ---
Subject: |
24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound' |
Date: |
Sun, 28 Jul 2013 15:49:00 +0200 |
Currently, this function behaves unconditionally
as if `org-clock-sound' was set to t.
I attach a patch of how I fixed it for my needs:
>From db2cc63bbdd4e51bd7a150186b131a39d7d10a6e Mon Sep 17 00:00:00 2001
From: oleh <address@hidden>
Date: Sun, 28 Jul 2013 15:39:57 +0200
Subject: [PATCH] org-clock.el: `org-clock-notify-once-if-expired' respects
`org-clock-sound'.
---
lisp/org-clock.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 8ac215e..99479b2 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -718,7 +718,7 @@ Notification is shown only once."
(setq org-clock-notification-was-shown t)
(org-notify
(format "Task '%s' should be finished by now. (%s)"
- org-clock-heading org-clock-effort) t))
+ org-clock-heading org-clock-effort) org-clock-sound))
(setq org-clock-notification-was-shown nil)))))
(defun org-notify (notification &optional play-sound)
--
1.8.1.2
regards,
Oleh
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound' |
Date: |
Tue, 30 Jul 2013 12:46:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Oleh,
Oleh <address@hidden> writes:
> Currently, this function behaves unconditionally
> as if `org-clock-sound' was set to t.
>
> I attach a patch of how I fixed it for my needs:
Please send those patches to the org-mode list first.
I applied it but added a ChangeLog entry in the commit message
and the TINYCHANGE change cookie that helps us track small changes
by contributors who did not assign their copyright to the FSF (yet).
Thanks for catching this,
--
Bastien
--- End Message ---