From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [Bug] marking repeating task done destroys property/logbook drawers Date: Thu, 13 Mar 2014 12:47:11 -0500 Message-ID: <87ha72rnxc.fsf@fastmail.fm> References: <87mwh6618q.fsf@fastmail.fm> <87iorioyzh.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO9j3-0002Ib-6Q for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 13:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO9ix-0008IU-1p for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 13:47:25 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO9iw-0008II-Ml for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 13:47:18 -0400 In-Reply-To: <87iorioyzh.fsf@bzg.ath.cx> (Bastien's message of "Thu, 13 Mar 2014 17:16:34 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: org-mode Mailing List Hi Bastien, Bastien writes: > Hi Matt, > > Matt Lundin writes: > >> 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. > > I can't reproduce this. Karl can, so there is something weird here. > >> I am using... >> >> - Emacs version: 24.3.1 >> - Org-mode version: 8.2.5h > > Can you use M-x org-version RET (or C-u M-x org-version RET to insert > the output in your mail) ? > >> 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 for any further investigation, it's hard to know what can be > wrong without being to reproduce this. This was a problem with org-element's cache. It was solved with the following commit: a8568372ad8bba841af7f7d1fdf9b64d38426c3a Here's the original post of the thread containing the solution: http://permalink.gmane.org/gmane.emacs.orgmode/83015 Matt