From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Jump to selected clock task when starting the clock Date: Thu, 16 Apr 2009 06:09:23 +0200 Message-ID: References: <1239847615-15244-1-git-send-email-bernt@norang.ca> <1239847615-15244-2-git-send-email-bernt@norang.ca> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuIuo-0003u2-Oa for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 00:09:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuIuk-0003rv-6l for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 00:09:30 -0400 Received: from [199.232.76.173] (port=59994 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuIuk-0003rp-17 for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 00:09:26 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:35926) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LuIuj-0007rV-Lq for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 00:09:25 -0400 Received: by mail-ew0-f160.google.com with SMTP id 4so192590ewy.42 for ; Wed, 15 Apr 2009 21:09:25 -0700 (PDT) In-Reply-To: <1239847615-15244-2-git-send-email-bernt@norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Apr 16, 2009, at 4:06 AM, Bernt Hansen wrote: > 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode