emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Re: Automatic clock-in
Date: Tue, 20 Apr 2010 10:50:12 -0400	[thread overview]
Message-ID: <8116.1271775012@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Andrea Crotti <andrea.crotti.0@gmail.com> of "Tue, 20 Apr 2010 14:51:57 +0200." <m1hbn6cmmq.fsf@gmail.com>

Andrea Crotti <andrea.crotti.0@gmail.com> wrote:

> Benjamin Andresen <benny@in-ulm.de> 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

  parent reply	other threads:[~2010-04-20 15:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 14:47 Automatic clock-in Andrea Crotti
2010-04-19 15:49 ` Benjamin Andresen
2010-04-19 17:27   ` Eric S Fraga
2010-04-20 12:51   ` Andrea Crotti
2010-04-20 13:46     ` Eric S Fraga
2010-04-20 14:50     ` Nick Dokos [this message]
2010-04-20 14:57     ` Bastien
2010-04-20  0:33 ` Bernt Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8116.1271775012@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).