From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Capture - stay clocked in? Date: Mon, 07 Mar 2011 10:55:04 -0500 Message-ID: <87wrkbapt3.fsf@norang.ca> References: <87zkp9f6m8.fsf@gnu.org> <87k4gb1u27.fsf@norang.ca> <87aah7nxuf.fsf@gnu.org> <838vwrb5as.fsf@yahoo.it> <87ipvvtedy.fsf@gnu.org> <1601089B-9879-4C7C-BF74-D6010BE52C5A@gmail.com> <87pqq30z28.fsf@gnu.org> <871v2jc5za.fsf@norang.ca> <87tyffympj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=33169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwcm6-0000Pr-Ib for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 10:55:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwcm4-0008MQ-L7 for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 10:55:10 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:57725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwcm4-0008MA-GH for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 10:55:08 -0500 In-Reply-To: <87tyffympj.fsf@gnu.org> (Bastien's message of "Mon, 07 Mar 2011 16:28:08 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode , Carsten Dominik Bastien writes: > Bernt Hansen 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