From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: BUG: Clocking in starts clock on the wrong task; Org-mode version 6.31trans (release_6.31.9.ga90f2) Date: Thu, 1 Oct 2009 16:43:58 -0400 Message-ID: <200910012043.n91KhwaG022049@gollum.intra.norang.ca> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtSVS-0006Ln-65 for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 16:44:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtSVO-0006Il-1n for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 16:44:05 -0400 Received: from [199.232.76.173] (port=33767 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtSVN-0006IZ-Sg for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 16:44:01 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:58852) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtSVN-0004vW-Io for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 16:44:01 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1MtSVM-00001g-Mm for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 20:44:00 +0000 Received: from gollum.intra.norang.ca (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id n91KhwMX027677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 1 Oct 2009 16:44:00 -0400 Received: from gollum.intra.norang.ca (localhost [127.0.0.1]) by gollum.intra.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id n91KhwtB022052 for ; Thu, 1 Oct 2009 16:43:58 -0400 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: emacs-orgmode@gnu.org 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)