* BUG: Clocking in starts clock on the wrong task; Org-mode version 6.31trans (release_6.31.9.ga90f2)
@ 2009-10-01 20:43 Bernt Hansen
2009-10-02 6:42 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Bernt Hansen @ 2009-10-01 20:43 UTC (permalink / raw)
To: emacs-orgmode
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG: Clocking in starts clock on the wrong task; Org-mode version 6.31trans (release_6.31.9.ga90f2)
2009-10-01 20:43 BUG: Clocking in starts clock on the wrong task; Org-mode version 6.31trans (release_6.31.9.ga90f2) Bernt Hansen
@ 2009-10-02 6:42 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-10-02 6:42 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-02 7:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 20:43 BUG: Clocking in starts clock on the wrong task; Org-mode version 6.31trans (release_6.31.9.ga90f2) Bernt Hansen
2009-10-02 6:42 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.