From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Cc: Bernt Hansen <bernt@norang.ca>
Subject: [PATCH] Jump to selected clock task when starting the clock
Date: Wed, 15 Apr 2009 22:06:55 -0400 [thread overview]
Message-ID: <1239847615-15244-2-git-send-email-bernt@norang.ca> (raw)
In-Reply-To: <1239847615-15244-1-git-send-email-bernt@norang.ca>
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.
---
This commit is available at git://git.norang.ca/org-mode for-carsten
lisp/org-clock.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 0b0b607..e56f82f 100644
--- a/lisp/org-clock.el
+++ b/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.
--
1.6.3.rc0
next prev parent reply other threads:[~2009-04-16 2:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 2:06 [PATCH] Call org-reveal after refiling Bernt Hansen
2009-04-16 2:06 ` Bernt Hansen [this message]
2009-04-16 4:09 ` [PATCH] Jump to selected clock task when starting the clock Carsten Dominik
2009-04-16 4:09 ` [PATCH] Call org-reveal after refiling Carsten Dominik
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=1239847615-15244-2-git-send-email-bernt@norang.ca \
--to=bernt@norang.ca \
--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).