emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH 1/2] Initialize org-clock-notification-was-shown on clock-in
@ 2009-06-09 20:43 Bernt Hansen
  0 siblings, 0 replies; only message in thread
From: Bernt Hansen @ 2009-06-09 20:43 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Bernt Hansen

This makes org-clock-sound a little more well-behaved.  The clock
sound was only being issued if you were already clocking a task that
was under its limit, and changed to clocking something else.  Now each
time you clock in a new task it checks the estimated effort limit and
issues the org-clock-sound if the limit is exceeded.

This patch issues the org-clock-sound whenever you clock in a task
that is already over its estimated effort amount.  This allows you to
use the estimated effort as a limit for the amount of time to spend on
a task.  Each time you clock in the task you'll be notified that you
are over the limit.  This is great for tasks where you want to limit
the amount of time spent (per day, since last repeat) and is a
reminder to go work on something else instead.
---
This patch series is available at git://git.norang.ca/org-mode for-carsten

 lisp/org-clock.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 1016c6a..57f1a6f 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -420,6 +420,7 @@ clock into.  When SELECT is `C-u C-u', clock into the current task and mark
 is as the default task, a special task that will always be offered in
 the clocking selection, associated with the letter `d'."
   (interactive "P")
+  (setq org-clock-notification-was-shown nil)
   (catch 'abort
     (let ((interrupting (marker-buffer org-clock-marker))
 	  ts selected-task target-pos (msg-extra ""))
-- 
1.6.3.2.198.g6096d

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-09 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09 20:43 [PATCH 1/2] Initialize org-clock-notification-was-shown on clock-in Bernt Hansen

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).