emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture and clock options
@ 2010-08-12 16:01 julien cubizolles
  2010-08-13  1:14 ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: julien cubizolles @ 2010-08-12 16:01 UTC (permalink / raw)
  To: Org Mode

I'm in the process of converting my old remember templates but I can't
figure how to use the clock parameters.

I'm using the following template :

("T" "test" entry (file+headline "~/org/orgfiles/test.org" "Test")
  "* %?" :clock-in t :clock-resume t)
 
There is no clock information in the modeline of the capture buffer,
no :CLOCK: property appears when the note is captured, and the former
clock is not resumed. However the task appears in the list provided by
What am I doing wrong ?

Also I noticed in Bernt Hansen examples (which I shamelessly copied, as
I had with the former remember templates) that he adds
":CLOCK:
:END:
"
to his todo template but not to his notes templates, while both are
"clocked-in" and "clock-resumed". What is the difference between the two
setups ?

Julien.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Capture and clock options
  2010-08-12 16:01 Capture and clock options julien cubizolles
@ 2010-08-13  1:14 ` Bernt Hansen
  2010-08-13  1:21   ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2010-08-13  1:14 UTC (permalink / raw)
  To: julien cubizolles; +Cc: Org Mode

Hi Julien,

julien cubizolles <j.cubizolles@free.fr> writes:

> I'm in the process of converting my old remember templates but I can't
> figure how to use the clock parameters.
>
> I'm using the following template :
>
> ("T" "test" entry (file+headline "~/org/orgfiles/test.org" "Test")
>   "* %?" :clock-in t :clock-resume t)
>  
> There is no clock information in the modeline of the capture buffer,
> no :CLOCK: property appears when the note is captured, and the former
> clock is not resumed. However the task appears in the list provided by
> What am I doing wrong ?

This is a bug in the current master branch of org-mode.  I'll identify
the commit that breaks it shortly and post that information as a
followup to this message.

>
> Also I noticed in Bernt Hansen examples (which I shamelessly copied, as
> I had with the former remember templates) that he adds
> ":CLOCK:
> :END:
> "
> to his todo template but not to his notes templates, while both are
> "clocked-in" and "clock-resumed". What is the difference between the two
> setups ?

The only reason I have :CLOCK: ... :END: in my 'N' notes entry is to
keep the clock table from aligning way over on the right with the :NOTE:
tag.  The other templates don't have tags assigned so clocking in puts
the clock drawer at a reasonable spot when creating the task.
I haven't actually tested if this is required by org-capture mode
but it was for remember mode.  My current capture templates were
converted from my remember templates.

-Bernt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Capture and clock options
  2010-08-13  1:14 ` Bernt Hansen
@ 2010-08-13  1:21   ` Bernt Hansen
  2010-08-13  8:25     ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2010-08-13  1:21 UTC (permalink / raw)
  To: Bastien Guerry; +Cc: Org Mode

Julien:

You can check out commit a7a842^ ($ git checkout a7a842^) and M-x
org-reload and it should work properly.  A fix will need to be created
for the master branch before this works on the tip of master again.

Bernt Hansen <bernt@norang.ca> writes:

> julien cubizolles <j.cubizolles@free.fr> writes:
>
>> I'm in the process of converting my old remember templates but I can't
>> figure how to use the clock parameters.
>>
>> I'm using the following template :
>>
>> ("T" "test" entry (file+headline "~/org/orgfiles/test.org" "Test")
>>   "* %?" :clock-in t :clock-resume t)
>>  
>> There is no clock information in the modeline of the capture buffer,
>> no :CLOCK: property appears when the note is captured, and the former
>> clock is not resumed. However the task appears in the list provided by
>> What am I doing wrong ?
>
> This is a bug in the current master branch of org-mode.  I'll identify
> the commit that breaks it shortly and post that information as a
> followup to this message.

a7a842457dd927df9eabc756c4c573720a3a7aa9 is the first bad commit
commit a7a842457dd927df9eabc756c4c573720a3a7aa9
Author: Bastien Guerry <bzg@altern.org>
Date:   Wed Aug 11 16:10:14 2010 +0200

    Rebind org-agenda-clock-goto to `J' in the agenda.
    
    * org-agenda.el (org-agenda-clock-goto): Use `\C-c\C-x\C-j' for
    `org-clock-goto' and `J' for `org-agenda-clock-goto'.  If the heading
    currently clocked in is not listed in the agenda, display this entry
    in another buffer.  If there is no running clock, display a help
    message.
    
    * org-clock.el (org-clock-set-current): append the filename after the
    heading.

:040000 040000 8c131e4aa0e207521aa9017c6ed67a29e931fd1b 1e151641c5833aa11d08099a4752db9500ba9978 M	lisp

-Bernt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Capture and clock options
  2010-08-13  1:21   ` Bernt Hansen
@ 2010-08-13  8:25     ` Bastien
  2010-08-13  8:38       ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2010-08-13  8:25 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org Mode

Hi Bernt,

Bernt Hansen <bernt@norang.ca> writes:

>> This is a bug in the current master branch of org-mode.  I'll identify
>> the commit that breaks it shortly and post that information as a
>> followup to this message.
>
> a7a842457dd927df9eabc756c4c573720a3a7aa9 is the first bad commit
> commit a7a842457dd927df9eabc756c4c573720a3a7aa9
> Author: Bastien Guerry <bzg@altern.org>
> Date:   Wed Aug 11 16:10:14 2010 +0200
>
>     Rebind org-agenda-clock-goto to `J' in the agenda.
>     
>     * org-agenda.el (org-agenda-clock-goto): Use `\C-c\C-x\C-j' for
>     `org-clock-goto' and `J' for `org-agenda-clock-goto'.  If the heading
>     currently clocked in is not listed in the agenda, display this entry
>     in another buffer.  If there is no running clock, display a help
>     message.
>     
>     * org-clock.el (org-clock-set-current): append the filename after the
>     heading.

I can't see anything in this commit interfering with the capture
process.  Do you have an idea why it is related to the bug Julien 
is reporting?

I've been digging into this issue a bit, and something looks weird in
the `org-capture' defun: the :clock-in property is taken into account
only when :immediate-finish is not set...  (see the end of the defun.)
Could Julien's issue be related to this?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Capture and clock options
  2010-08-13  8:25     ` Bastien
@ 2010-08-13  8:38       ` Bastien
  2010-08-13 11:47         ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2010-08-13  8:38 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org Mode

Bastien <bzg@gnu.org> writes:

> I can't see anything in this commit interfering with the capture
> process.  Do you have an idea why it is related to the bug Julien 
> is reporting?

I got it.  `org-clock-set-current' was trying to get the filename, 
which doesn't work in indirect buffers.

I pushed a fix in the current git.

Julien, please let me know if this fix your issue.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Capture and clock options
  2010-08-13  8:38       ` Bastien
@ 2010-08-13 11:47         ` Bernt Hansen
  2010-08-14  8:07           ` julien cubizolles
  0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2010-08-13 11:47 UTC (permalink / raw)
  To: Bastien; +Cc: Org Mode

Bastien <bastien.guerry@wikimedia.fr> writes:

> Bastien <bzg@gnu.org> writes:
>
>> I can't see anything in this commit interfering with the capture
>> process.  Do you have an idea why it is related to the bug Julien 
>> is reporting?
>
> I got it.  `org-clock-set-current' was trying to get the filename, 
> which doesn't work in indirect buffers.
>
> I pushed a fix in the current git.
>
> Julien, please let me know if this fix your issue.

This fixes it for me.  Thanks Bastien!

-Bernt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Capture and clock options
  2010-08-13 11:47         ` Bernt Hansen
@ 2010-08-14  8:07           ` julien cubizolles
  0 siblings, 0 replies; 7+ messages in thread
From: julien cubizolles @ 2010-08-14  8:07 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Org Mode, Bastien

Le vendredi 13 août 2010 à 07:47 -0400, Bernt Hansen a écrit :

> This fixes it for me.  Thanks Bastien!
> 
> -Bernt

And for me too, thanks a lot for this quick fix.

Julien.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-14  8:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-12 16:01 Capture and clock options julien cubizolles
2010-08-13  1:14 ` Bernt Hansen
2010-08-13  1:21   ` Bernt Hansen
2010-08-13  8:25     ` Bastien
2010-08-13  8:38       ` Bastien
2010-08-13 11:47         ` Bernt Hansen
2010-08-14  8:07           ` julien cubizolles

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).