From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: [RFC] Change property drawer syntax Date: Wed, 26 Nov 2014 15:09:51 +0100 Message-ID: <867fyi59zk.fsf@example.com> 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> <87sihmq3dd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <87sihmq3dd.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> (Nicolas Goaziou's message of "Thu, 13 Nov 2014 20:58:38 +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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Nicolas Goaziou Cc: public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org Hello Nicoalas, Nicolas Goaziou wrote: > 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. Would it be a problem to bind the LOGBOOK drawer to the headline as well (like you did for the PROPERTIES drawer)? >> Now, with `org-adapt-indentation' set to `t', the whole "block" moves to >> the right when demoting, and to the left 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. > > `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. Did not know I wasn't conforming to the common habits... >From what I've seen, - Planning info and drawers are typically "indented" (see Worg, the Org-mode manual and http://doc.norang.ca/org-mode.html for different types of drawers, sometimes including the PROPERTIES one), what makes those info stand out from the "notes" themselves. - Body text is often not indented (see Worg files themselves), which is much easier for diffing different versions of the same file). > I suggest to keep `org-adapt-indentation' to nil OK. > and "fix" meta stuff and logbook by indentation by hand, using > `org-after-demote-entry-hook' and `org-after-promote-entry-hook'. That could do it when promoting or demoting entries. But that's not sufficient: now, whenever logging a state change (from TODO to DONE, for example), a drawer gets created in column 0, instead of at the right indentation level of the headline. The same kind of problems occurred with a repeating timestamp: --8<---------------cut here---------------start------------->8--- ** TODO Noter les index de consommation DEADLINE: <2014-11-23 Sun 20:00 ++7d -0d> :PROPERTIES: :LAST_REPEAT: [2014-11-25 Tue 16:46] :END: :LOGBOOK: (...) - State "DONE" from "TODO" [2014-11-17 Mon 13:36] :END: --8<---------------cut here---------------end--------------->8--- became (after C-c C-t d): --8<---------------cut here---------------start------------->8--- ** TODO Noter les index de consommation DEADLINE: <2014-11-30 Sun 20:00 ++7d -0d> :PROPERTIES: :LAST_REPEAT: [2014-11-25 Tue 16:46] :END: :LOGBOOK: (...) - State "DONE" from "TODO" [2014-11-17 Mon 13:36] - State "DONE" from "TODO" [2014-11-25 Tue 16:46] :END: --8<---------------cut here---------------end--------------->8--- ^ DEADLINE in column 0. Am I missing something? Best regards, Seb -- Sebastien Vauban