From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug in org-habits Date: Tue, 03 Nov 2015 17:31:19 +0100 Message-ID: <87h9l32gfc.fsf@nicolasgoaziou.fr> References: <871tc83p01.fsf@flynn.nichework.com> <84io5j1k5h.fsf@gmail.com> <84611j19hk.fsf@gmail.com> <5638C2A1.2090801@iancu.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZteSp-0006hG-HA for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 11:29:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZteSl-0000ro-KY for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 11:29:39 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:34539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZteSl-0000r0-DK for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 11:29:35 -0500 In-Reply-To: <5638C2A1.2090801@iancu.ch> (Stelian Iancu's message of "Tue, 3 Nov 2015 15:20:17 +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: Stelian Iancu Cc: jwiegley@gmail.com, emacs-orgmode@gnu.org Hello, Stelian Iancu writes: > I have an org file with calendar appointments. I also have attachments > to the appointments. The attachment appears in a PROPERTIES drawer. > > Now if I have the timestamp (plain one) before the drawer, I cannot > open the attachment. Pressing C-c C-a o just inserts another > PROPERTIES drawer (with another ID) above the timestamp. > > If, however, I move the timestamp after the PROPERTIES drawer, I can > successfully open the attachment and the second drawer doesn't appear. > > Also, when the second drawer appears, a new empty folder is created in > the data directory of my org directory. > > IMHO this is a bug, as at the moment I have to have the timestamp > after the drawer. This is not a bug. The order is HEADLINE (SCHEDULED PROPERTIES). If you insert a timestamp between SCHEDULED and PROPERTIES, the latter is no longer recognized as a PROPERTIES DRAWER (it becomes, in fact, a regular drawer which happens to be named "PROPERTIES") and you lose any information attached to it. You can get this information back by putting the PROPERTIES drawer (the special one) at its expected location. Regards, -- Nicolas Goaziou