emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Wishlist - Function to get to and reveal the current clock


From: Bastien
Subject: Re: [Orgmode] Wishlist - Function to get to and reveal the current clocking task
Date: Wed, 03 Oct 2007 19:09:00 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Bernt Hansen <address@hidden> writes:

> I'd love a function I could bind to a single key press to do this.
>
> I know org-clock-marker points at the current location I want to get to
> - I just don't know how to use it to get there and reveal the location
> the same as if I used the above procedure from the agenda.

Something like this?

(defun org-goto-clocked-in-entry ()
  "Go to the currently clocked-in entry."
  (interactive)
  (goto-char org-clock-marker)
  (org-show-entry)
  (org-back-to-heading))

-- 
Bastien




reply via email to

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