From: Bernt Hansen <bernt@norang.ca>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: Capture - stay clocked in?
Date: Mon, 07 Mar 2011 10:55:04 -0500 [thread overview]
Message-ID: <87wrkbapt3.fsf@norang.ca> (raw)
In-Reply-To: <87tyffympj.fsf@gnu.org> (Bastien's message of "Mon, 07 Mar 2011 16:28:08 +0100")
Bastien <bzg@altern.org> writes:
> Bernt Hansen <bernt@norang.ca> 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
next prev parent reply other threads:[~2011-03-07 15:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 19:30 Capture - stay clocked in? Nathan Neff
2011-02-28 22:40 ` Bernt Hansen
2011-03-06 0:13 ` Bastien
2011-03-07 3:35 ` Bernt Hansen
2011-03-07 8:23 ` Bastien
2011-03-07 10:20 ` Giovanni Ridolfi
2011-03-07 10:26 ` Bastien
2011-03-07 12:54 ` Carsten Dominik
2011-03-07 13:51 ` Bernt Hansen
2011-03-07 14:44 ` Bastien
2011-03-07 14:45 ` Bastien
2011-03-07 15:20 ` Bernt Hansen
2011-03-07 15:28 ` Bastien
2011-03-07 15:55 ` Bernt Hansen [this message]
2011-03-07 16:27 ` Bastien
2011-03-07 18:13 ` Bernt Hansen
2011-03-07 10:17 ` Bastien
2011-03-07 12:34 ` 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=87wrkbapt3.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=bzg@altern.org \
--cc=carsten.dominik@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).