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

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

[debbugs-tracker] bug#14975: closed (24.3; org-mode's `org-clock-notify-


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14975: closed (24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound')
Date: Tue, 30 Jul 2013 10:48:02 +0000

Your message dated Tue, 30 Jul 2013 12:46:50 +0200
with message-id <address@hidden>
and subject line Re: bug#14975: 24.3; org-mode's 
`org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'
has caused the debbugs.gnu.org bug report #14975,
regarding 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect 
`org-clock-sound'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14975: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14975
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

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