From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug?] org-repair-property-drawers does not repair whole file Date: Sun, 08 Mar 2015 18:01:20 +0100 Message-ID: <87sidf4e5b.fsf@nicolasgoaziou.fr> References: <20150225233650.GA6671@boo.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUeYk-0007xq-VW for emacs-orgmode@gnu.org; Sun, 08 Mar 2015 13:00:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUeYh-0001pr-Ql for emacs-orgmode@gnu.org; Sun, 08 Mar 2015 13:00:10 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:56473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUeYh-0001oi-LE for emacs-orgmode@gnu.org; Sun, 08 Mar 2015 13:00:07 -0400 Received: from mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.140]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id BB7351720A1 for ; Sun, 8 Mar 2015 18:00:06 +0100 (CET) Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter2-d.gandi.net (mfilter2-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id tsutONMSb4G7 for ; Sun, 8 Mar 2015 18:00:05 +0100 (CET) Received: from selenimh (unknown [91.224.148.150]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 52613172081 for ; Sun, 8 Mar 2015 18:00:05 +0100 (CET) In-Reply-To: <20150225233650.GA6671@boo.workgroup> (Gregor Zattler's message of "Thu, 26 Feb 2015 00:36:50 +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: emacs-orgmode Hello, Gregor Zattler writes: > I invoked org-repair-property-drawers on a fairly large org-mode > file. It did sort some PROPERTIES drawers in front of LOGBOOK > ones but not all. Since I do not understand the logic of > org-repair-property-drawers I prepared a file with the structure > of the org-mode file after running org-repair-property-drawers on > it: > > egrep "^\*+|^ *:PROPERTIES:|^ *:LOGBOOK:|^ *:END:" file.org |nl >headings= -properties-logbook-numbered > > sed -e "s/\(^ > \+[0-9]\+[[:space:]]*\*\+[[:space:]]*\)\(TODO\|INPROGRESS\|WAITING\|VERIF= Y\|DONE\|DELEGATED\|CANCELLED\|PUTOFF\|IDEA\)*\(.*$\)/\1\2/" > headings-properties-logbook-numbered >>headings-properties-logbook-numbered.anon > > I don=E2=80=99t how to isolate the bug or the circumstances which trigger > it. The file headings-properties-logbook-numbered.anon is > attached to this email. I hope it might be useful to you to find > the bug. Unfortunately it doesn't ring a bell.=20 Running `org-repair-property-drawers' on your file repairs it. Would it be related to `org-inlinetask' (i.e., different behaviour if the library is loaded or not)? Regards, --=20 Nicolas Goaziou