From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: BUG: Clocking in starts clock on the wrong task; Org-mode version 6.31trans (release_6.31.9.ga90f2) Date: Fri, 2 Oct 2009 08:42:30 +0200 Message-ID: <6B37E5C5-6D3E-4793-84F6-9E0186FBA9A6@gmail.com> References: <200910012043.n91KhwaG022049@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtcMx-0002z4-QV for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 03:15:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtcMt-0002vZ-Mt for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 03:15:59 -0400 Received: from [199.232.76.173] (port=54005 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtcMt-0002vO-Ed for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 03:15:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:40527) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtcMs-0005GL-VW for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 03:15:55 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtcMs-0002E4-0N for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 03:15:54 -0400 Received: by mail-ew0-f208.google.com with SMTP id 4so802928ewy.31 for ; Fri, 02 Oct 2009 00:15:53 -0700 (PDT) In-Reply-To: <200910012043.n91KhwaG022049@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org Hi Bernt, nice catch! The reason why this happens is that the cursor is actually in front of that other task, and I am widening the buffer for clocking in. The reason why I am widening it is that clocking in a task from the clock history my need to access a task that is outside the current restriction. Fixed, thanks. - Carsten On Oct 1, 2009, at 10:43 PM, Bernt Hansen wrote: > > If you narrow to subtree when there is a following task the narrowed > buffer has a blank line at the end. If you are on this line and > clock-in it starts the clock for the _following_ task (outside the > narrowed subtree) and not the task you are looking at. > > I stumbled across this today because the following task was already > over the estimated limit when I clocked it in - which triggered my > alarm sound. > > ,----[ test.org ] > | #+STARTUP: > | * TODO One > | * TODO Two > `---- > > ,----[ minimal.emacs ] > | (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) > `---- > > Key sequence to reproduce: > > $ emacs -q -l minimal.emacs test.org > > | Key | Notes | > |-------------------------------+-------------------------------| > | C-n | Go to first task '* TODO One' | > | M-x org-narrow-to-subtree RET | Narrow to subtree | > | C-n | Move to last blank line | > | C-c C-x C-i | Clock in (next) task | > |-------------------------------+-------------------------------| > > -Bernt > > Emacs : GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) > of 2008-11-09 on raven, modified by Debian > Package: Org-mode version 6.31trans (release_6.31.8.g7485) > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode