[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Capture - stay clocked in?
From: |
Bernt Hansen |
Subject: |
Re: [O] Capture - stay clocked in? |
Date: |
Mon, 07 Mar 2011 10:55:04 -0500 |
User-agent: |
Gnus/5.110013 (No Gnus v0.13) Emacs/23.2 (gnu/linux) |
Bastien <address@hidden> writes:
> Bernt Hansen <address@hidden> writes:
>
>> For my 't' capture template with :clock-in and :clock-resume (and
>> no :clock-keep) when I start capture mode for the task when the clock is
>> not running it stays running in that task (as reported earlier) - Isn't
>> that a bug?
>
> Is it against latest git? (I pushed the change a bit later than I
> announced it.)
>
> Could you share you template so that I can test?
Yes it's from Org-mode version 7.5 (release_7.5.3.g7cb08)
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11
on raven, modified by Debian
I see two problems with this capture:
1) Clock stays running in the capture task after C-c C-c
2) The refile.org capture buffer is narrowed hiding the newly captured
task
Here is the sequence to reproduce the problem.
Start emacs with
--8<---------------cut here---------------start------------->8---
$ minimal-emacs
--8<---------------cut here---------------end--------------->8---
| Key | Notes |
| C-c c | Start capture mode |
| t | select TODO template |
| test clocking | give the task a heading |
| C-c C-c | close capture template |
The clock is still running. If you visit the file with C-x C-f
/tmp/refile.org it looks empty because it is currently narrowed.
Regards,
Bernt
~/bin/minimal-emacs
--8<---------------cut here---------------start------------->8---
#!/bin/sh
TESTEL=
TESTFILE=/tmp/test.el
if test -e $TESTFILE
then
TESTEL="-l /tmp/test.el"
fi
emacs -q -l ~/minimal.emacs $TESTEL $1
--8<---------------cut here---------------end--------------->8---
~/minimal.emacs
--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
--8<---------------cut here---------------end--------------->8---
/tmp/test.el
--8<---------------cut here---------------start------------->8---
(setq org-capture-templates (quote (("t" "todo" entry (file "/tmp/refile.org")
"* TODO %?
%U
%a
" :clock-in t :clock-resume t))))
(global-set-key (kbd "C-c c") 'org-capture)
--8<---------------cut here---------------end--------------->8---
--
Bernt
- Re: [O] Capture - stay clocked in?, (continued)
- Re: [O] Capture - stay clocked in?, Bernt Hansen, 2011/03/06
- Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07
- Re: [O] Capture - stay clocked in?, Giovanni Ridolfi, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07
- Re: [O] Capture - stay clocked in?, Carsten Dominik, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bernt Hansen, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bernt Hansen, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07
- Re: [O] Capture - stay clocked in?,
Bernt Hansen <=
- Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07
- Re: [O] Capture - stay clocked in?, Bernt Hansen, 2011/03/07
Re: [O] Capture - stay clocked in?, Bastien, 2011/03/07