emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [Bug] marking repeating task done destroys property/logbook drawers


From: Matt Lundin
Subject: [O] [Bug] marking repeating task done destroys property/logbook drawers
Date: Mon, 03 Mar 2014 22:23:17 -0600
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux)

When I mark a repeating task done (with the settings in the minimal.el
file below), org mangles the :LOGBOOK: and :PROPERTY: drawers when
trying to insert a :LAST_REPEAT: property.

Here are the steps to reproduce consistently:

1. emacs -Q -l ~/minimal.el 

where minimal.el contains...

Attachment: minimal.el
Description: application/emacs-lisp

2. Open an org-file containing the following entry.

--8<---------------cut here---------------start------------->8---
* TODO Repeating task
  SCHEDULED: <2014-03-02 Sun .+2w>
  :LOGBOOK:
  - State "DONE"       from "NOW"        [2014-02-23 Sun 08:39]
  CLOCK: [2014-02-23 Sun 08:26]--[2014-02-23 Sun 08:39] =>  0:13
  - State "DONE"       from "STARTED"    [2014-01-28 Tue 20:17]
  :END:
  :PROPERTIES:
  :LAST_REPEAT: [2014-02-23 Sun 08:39]
  :END:
--8<---------------cut here---------------end--------------->8---

3. Mark the item DONE. 

VoilĂ ... note the empty property drawer, the duplicate logbook drawers,
and the misplaced :LAST_REPEAT:

--8<---------------cut here---------------start------------->8---
* TODO Repeating task
  SCHEDULED: <2014-03-17 Mon .+2w>
  :LOGBOOK:
  - State "DONE"       from "TODO"       [2014-03-03 Mon 22:11]
  :END:
  :LAST_REPEAT: [2014-03-03 Mon 22:11]  :LOGBOOK:
  - State "DONE"       from "NOW"        [2014-02-23 Sun 08:39]
  CLOCK: [2014-02-23 Sun 08:26]--[2014-02-23 Sun 08:39] =>  0:13
  - State "DONE"       from "STARTED"    [2014-01-28 Tue 20:17]
  :END:
  :PROPERTIES:

  :END:
--8<---------------cut here---------------end--------------->8---

I am using...

 - Emacs version: 24.3.1
 - Org-mode version: 8.2.5h

...on Arch Linux.

Running edebug suggested that org-entry-put (which is invoked by
org-auto-repeat-maybe) places the :LAST_REPEAT: in the wrong place.
However, I couldn't discern why, since invocations of org-entry-put
otherwise seem to work fine.

Thanks,
Matt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]