Andrea Crotti <andrea.crott...@gmail.com> wrote: > Benjamin Andresen <be...@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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode