From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-clock-goto: switch to clicked window Date: Fri, 19 Jun 2009 14:04:04 +0200 Message-ID: <68AE6192-16DB-41B2-ABF1-8B7FE3C9CF51@gmail.com> References: <84my84fpnb.fsf@linux-b2a3.site> Mime-Version: 1.0 (Apple Message framework v935.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 1MHcpM-00062Y-MJ for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 08:04:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHcpG-00061l-Dl for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 08:04:14 -0400 Received: from [199.232.76.173] (port=35500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHcpE-00061T-La for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 08:04:09 -0400 Received: from mail-ew0-f210.google.com ([209.85.219.210]:52831) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHcpE-0007ip-0O for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 08:04:08 -0400 Received: by ewy6 with SMTP id 6so2286120ewy.42 for ; Fri, 19 Jun 2009 05:04:07 -0700 (PDT) In-Reply-To: <84my84fpnb.fsf@linux-b2a3.site> 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: Magnus Henoch Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Jun 19, 2009, at 1:07 PM, Magnus Henoch wrote: > I just discovered that org-clock-in displays the clocked-in task in > the > mode line, so that I can click it and go back to the Org file, which I > really like. I changed it to switch to the window in which I click, > by prepending "@" to the interactive spec of org-clock-goto. > > Magnus > > diff --git a/lisp/org-clock.el b/lisp/org-clock.el > index 4825c1a..14d1158 100644 > --- a/lisp/org-clock.el > +++ b/lisp/org-clock.el > @@ -729,7 +729,7 @@ If there is no running clock, throw an error, > unless FAIL-QUIETLY is set." > (defun org-clock-goto (&optional select) > "Go to the currently clocked-in entry, or to the most recently > clocked one. > With prefix arg SELECT, offer recently clocked tasks for selection." > - (interactive "P") > + (interactive "@P") > (let* ((recent nil) > (m (cond > (select > _______________________________________________ > 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