From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Wishlist - Function to get to and reveal the current clocking task Date: Wed, 03 Oct 2007 15:10:30 -0400 Message-ID: <87k5q4ypy1.fsf@gollum.intra.norang.ca> References: <877im413y0.fsf@gollum.intra.norang.ca> <878x6krryb.fsf@bzg.ath.cx> <87ve9oyrmm.fsf@gollum.intra.norang.ca> <87zlz0qbhk.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id9cF-0005HD-0q for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 15:10:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id9cB-0005Dc-VU for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 15:10:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id9cB-0005CJ-MT for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 15:10:35 -0400 Received: from outbound.mailhop.org ([63.208.196.171]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Id9c9-0002nk-VY for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 15:10:34 -0400 In-Reply-To: <87zlz0qbhk.fsf@bzg.ath.cx> (Bastien's message of "Wed\, 03 Oct 2007 19\:49\:59 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > Bernt Hansen writes: > >> If I'm in another buffer it splits the window and displays the right >> stuff in the other buffer - I just need to close the current window. > > (defun org-goto-clocked-in-entry (&optional delete-windows) > "Go to the currently clocked-in entry. > If DELETE-WINDOWS is non-nil, delete other windows. Sigh." > (interactive "P") > (if (not (marker-buffer org-clock-marker)) > (error "No active clock")) > (switch-to-buffer-other-window > (marker-buffer org-clock-marker)) > (if delete-windows (delete-other-windows)) > (goto-char org-clock-marker) > (org-show-entry) > (org-back-to-heading)) > > I guess that comes closer. Thanks! (global-set-key (kbd "C-M-") (lambda () (interactive) (org-goto-clocked-in-entry t))) :) Now the only weird thing it does is after going to the right place - if I hit C-M- again it goes somewhere else... and again brings it back. I'm not sure what's up with that but this is alot better than navigating through the agenda for me! Thanks Bastien!! Regards, Bernt P.S. And WOW that's fast response time!! Much appreciated!