Browse Source

Jump to selected clock task when starting the clock

Move the point to the selected task when clocking in using the clock
history.  I find I'm always going to the currently clocked task after
picking it off of the menu and this saves one small step.

This could be optionally controlled by a variable.
Bernt Hansen 16 years ago
parent
commit
61dfa0c67f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-clock.el

+ 2 - 1
lisp/org-clock.el

@@ -380,7 +380,8 @@ the clocking selection, associated with the letter `d'."
 	    (org-clock-update-mode-line)
 	    (setq org-clock-mode-line-timer
 		  (run-with-timer 60 60 'org-clock-update-mode-line))
-	    (message "Clock started at %s" ts)))))))
+	    (message "Clock started at %s" ts)))))
+    (org-clock-goto nil)))
 
 (defun org-clock-find-position (find-unclosed)
   "Find the location where the next clock line should be inserted.