From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Automatic clock-in Date: Tue, 20 Apr 2010 10:50:12 -0400 Message-ID: <8116.1271775012@gamaville.dokosmarshall.org> References: <874oj7cuiy.fsf@in-ulm.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4Fj1-0007bP-3T for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 11:50:59 -0400 Received: from [140.186.70.92] (port=38065 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4Fiw-0007bG-KU for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 11:50:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4Fiu-0002R8-B3 for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 11:50:54 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:56620) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Fiu-0002Qr-5i for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 11:50:52 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L1600BJ2JVOSEK2@vms173019.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 09:50:13 -0500 (CDT) In-reply-to: Message from Andrea Crotti of "Tue, 20 Apr 2010 14:51:57 +0200." 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: Andrea Crotti Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Andrea Crotti wrote: > Benjamin Andresen writes: > > > Hey Andrea, > > > > > > Maybe C-u M-x org-clock-in RET does what you want. > > > > br, > > benny > > Ah great that's really nice, I always forget to try the magic C-u > first... > So by the way what is the real function called when prefixing C-u? The same function is called, but with the optional SELECT argument set. C-h f org-clock-in says: ,---- | org-clock-in is an interactive compiled Lisp function in | `org-clock.el'. | | (org-clock-in &optional SELECT) | | Start the clock on the current item. | If necessary, clock-out of the currently active clock. | With prefix arg SELECT, offer a list of recently clocked tasks to | clock into. When SELECT is `C-u C-u', clock into the current task and mark | is as the default task, a special task that will always be offered in | the clocking selection, associated with the letter `d'. `---- > I mean, can I call it directly? > You mean from lisp code? You call it like this: (org-clock-in 4) (that's what C-u M-x org-clock-in does), or (org-clock-in 16) (that's what C-u C-u M-x org-clock-in does.) And, btw, that's what C-u and C-u C-u do *always*: see section 7.10, Numeric Arguments, in the Emacs manual. HTH, Nick