emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@uva.nl>
To: Reimar Finken <finken@theo2.physik.uni-stuttgart.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: switch state of invisible todo item
Date: Thu, 12 Jun 2008 14:00:38 +0200	[thread overview]
Message-ID: <1956BA59-BB25-4ADB-9ADC-6930DBA41A29@uva.nl> (raw)
In-Reply-To: <ekprqx9wwc.fsf@theo2.physik.uni-stuttgart.de>


On Jun 4, 2008, at 3:01 PM, Reimar Finken wrote:

> Dear Carsten and all the other developers,
>
> Let me first thank you for this wonderful package. However, I
> have found a small but irritating bug when using
> `org-clock-in-switch-to-state'. Nothing terribly important if you
> have other priorities, but it still gets me every so often.
>
> Thanks very much for your help in advance,
>
> Reimar


Hi Raimar, this bug is now fixed, thank you for your detailed and very  
clear report.

- Carsten

>
>
> * Summary:
> When the variable `org-clock-in-switch-to-state' is set and the
> todo item to be clocked in is invisible in the org buffer,
> `org-agenda-clock-in' switches the todo state of the wrong
> headline. Instead of the actual item, the state of its visible
> parent is changed.
>
> * To reproduce this bug:
>
> 1) Starting with a clean emacs with only org-mode loaded,
>   evaluate:
>   (setq org-clock-in-switch-to-state "STARTED")
>
> 2) Then open the file testtasks.org, which reads (the 2nd level
>   heading will be folded by default):
> ,----[ testtasks.org ]
> | -*- mode: org; -*-
> | #+SEQ_TODO: TODO STARTED | DONE
> | * Tasks:
> | ** TODO Task1
> |
> `----
>
> 3) Add this file to the agenda list with C-c [ and call the todo
>   agenda with `M-x org-agenda' `t'. Then, press `I'
>   (org-agenda-clock-in) on the line " testtasks: TODO Task1".
>
> 4) Now `testtasks.org' looks like this (of course, the Task1 line
>   is still folded, but not the clock line):
> ,----[ testtasks.org ]
> | -*- mode: org; -*-
> | #+SEQ_TODO: TODO STARTED | DONE
> | * STARTED Tasks:
> | ** TODO Task1
> |    CLOCK: [2008-06-04 Wed 14:00]
> |
> `----
>
> Note that the parent headline `Tasks' had the todo keyword
> changed, not the `Task1' headline. When the `Task1' headline is
> visible, its todo state gets changed correctly.
>
> * Related obervation:
> After reverting the todo state back to `TODO' and folding it, the
> same bug occurs when one clocks into Task1 via
> `C-u M-x org-clock-in'. The bug must therefore be in
> `org-clock-in', where something like a `show-all' is missing in
> the (save-excursion (save-restriction ...)) part (target-pos is
> set to the correct value 61). But since I don't know org-mode
> well enough, I will leave that to the experts.
>
> * Configuration:
> org-version: "6.04c" (latest git version), but also occuring in
>             earlier versions
> emacs-version: "22.1.1"
>
> -- 
> Dr. Reimar Finken    (finken@theo2.physik.uni-stuttgart.de)
> II. Institut für Theoretische Physik, Universität Stuttgart
> Pfaffenwaldring 57                       Tel: 0711-68564924
> 70550 Stuttgart, Germany                 Fax: 0711-68564902
>
>
> _______________________________________________
> 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

  reply	other threads:[~2008-06-12 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 13:01 Bug: switch state of invisible todo item Reimar Finken
2008-06-12 12:00 ` Carsten Dominik [this message]
2008-06-12 12:18   ` Reimar Finken

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=1956BA59-BB25-4ADB-9ADC-6930DBA41A29@uva.nl \
    --to=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=finken@theo2.physik.uni-stuttgart.de \
    /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).