From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Change property drawer syntax Date: Thu, 13 Nov 2014 20:58:38 +0100 Message-ID: <87sihmq3dd.fsf@nicolasgoaziou.fr> References: <87oatek909.fsf@nicolasgoaziou.fr> <87siiadfbj.fsf@nicolasgoaziou.fr> <877fzkcojr.fsf@nicolasgoaziou.fr> <86fvdwsk7e.fsf@example.com> <87a941yfco.fsf@nicolasgoaziou.fr> <86r3xb4atc.fsf@example.com> <87r3xbqqwl.fsf@nicolasgoaziou.fr> <86bnocn1m8.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xp0Wx-0000EX-5M for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 14:58:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xp0Wq-0003s2-3I for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 14:58:11 -0500 Received: from plane.gmane.org ([80.91.229.3]:41311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xp0Wp-0003rp-SZ for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 14:58:04 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xp0Wn-0007F6-V6 for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 20:58:01 +0100 In-Reply-To: <86bnocn1m8.fsf@example.com> (Sebastien Vauban's message of "Wed, 12 Nov 2014 11:40:15 +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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, Sebastien Vauban writes: > I've done that but, now, it does not support anymore the structure I had > in all my Org files: > > ** TODO Show typical Org entry > SCHEDULED: <2014-11-08 Sat> > :LOGBOOK: > CLOCK: [2014-11-11 Tue 12:35]--[2014-11-11 Tue 14:19] => 1:44 > :END: > > I have the planning lines and the drawers indented at the level of the > entry. > > On the other hand, the "body text" of the entry always begins at > column 0. This makes a clear distinction between "meta-stuff" and the > contents of the entry itself. This distinction is not known by Org. "Meta-stuff" is stuff bound to a headline: planning info and, now, properties drawer. OTOH, a LOGBOOK drawer is a regular drawer, which can be inserted anywhere within the section. As such, it belong to the body of the section. > Now, with `org-adapt-indentation' set to `t', the whole "block" moves to > the right when demoting, and to the left (except for the LOGBOOK > drawer!? [1]) when promoting. When demoting, everything, i.e., "meta-stuff" and body, is moved to the right. When promoting, "meta-stuff" is moved unconditionally (due to `org-adapt-indentation'), but line beginning at column 0 prevents the body from being moved. Maybe behaviour could be more symmetric (i.e., refuse to demote body if promoting it would fail). I didn't think about it much, but I have the feeling that there are pitfalls, however. `org-adapt-indentation' is really useful if you indent everything, e.g., using C-j to start new lines. Here you are using something in-between. I suggest to keep `org-adapt-indentation' to nil and "fix" meta stuff and logbook by indentation by hand, using `org-after-demote-entry-hook' and `org-after-promote-entry-hook'. > With `org-adapt-indentation' set to `nil', nothing moves (but the > headline), when demoting or promoting. This sounds right. > [1] See http://screencast.com/t/nsGNuoHL. This requires Flash, which I don't have. Regards, -- Nicolas Goaziou