[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] demoting a heading inserts spaces in column-0 text
From: |
Daniel Clemente |
Subject: |
Re: [O] demoting a heading inserts spaces in column-0 text |
Date: |
Sat, 13 Dec 2014 17:28:06 +0700 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.4 (i586-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
El Fri, 12 Dec 2014 19:25:25 +0100 Nicolas Goaziou va escriure:
>
> > Of course everything's text, but if there's no distinction between
> > drawers/headers and text, that's the problem. Those headers are metadata
> > written and managed by org and must follow some rules,
>
> This is incorrect.
>
> :CLOCK: or :LOGBOOK: or whatever the value of `org-clock-into-drawer'
> is, are regular drawers conveniently provided to collect clocks and
> allow to hide them away. They have no special meaning in Org, and may
> not even exist (i.e., when `org-clock-into-drawer' is nil). There is no
> reason to treat them specially.
>
> OTOH, clocks themselves are pure metadata. They could be indented
> specifically, but since they are allowed anywhere in a section, it might
> be dangerous to do so (e.g. it could break a list). Actually, this is
> true for anything that need to appear at the very beginning of the
> section, i.e., anything but planning info and properties drawers.
>
> > […]
> This is also wrong. PROPERTIES drawer, which is metadata, has to be
> moved before anything else in the section (with the exception of
> planning info). This has nothing to do with CLOCK drawers, which are not
> even considered in the process.
>
> > So, I think org should detect its own syntax (:CLOCK: ... :END: etc.), and
> > do automatic changes only to its own syntax, not to text typed by the user
> > unless the user asks for it.
>
> Again, :CLOCK:...:END: is user's decision, not Org's. So are all
> drawers, but, of course, PROPERTIES. The latter is the exception, not
> the rule.
But these are technical details, not relevant to a non-programmer. What a new
user sees with the default settings as of today is:
- he writes a new tree and some text inside
- he clocks in
- he demotes the tree (shift+right) because he wants to change the tree
structure. Result: his text also is modified
This breaks user's expectations. At least it breaks my expectations, because
in a logical tree of nodes, demoting does not mean „shift contents“. And I
thought org was supposed not to break my content.
I also lose controllability because I have no way to rearrange nodes without
side effects.
I suggest:
1. New default for org-adapt-indentation = 'partial, which shifts every line
until the first line which starts at column 0. This may not shift all drawers
in complex cases where you have them in the bottom of the tree; therefore it's
called partial. This is handling the most common cases. And in case you had
indentation in all lines, all lines will be shifted.
2. With org-adapt-indentation = 'partial, new lines added by org (:CLOCK:
drawer, CLOCK lines etc) appear at the same column as the heading, not at
column 0
3. The other options stay the same: org-adapt-indentation=t means everything
will be shifted, org-adapt-indentation=nil means nothing will be shifted (new
text starts at column 0)
-- Daniel
- [O] demoting a heading inserts spaces in column-0 text, Daniel Clemente, 2014/12/05
- Re: [O] demoting a heading inserts spaces in column-0 text, Nicolas Goaziou, 2014/12/05
- Re: [O] demoting a heading inserts spaces in column-0 text, Daniel Clemente, 2014/12/11
- Re: [O] demoting a heading inserts spaces in column-0 text, Nicolas Goaziou, 2014/12/12
- Re: [O] demoting a heading inserts spaces in column-0 text,
Daniel Clemente <=
- Re: [O] demoting a heading inserts spaces in column-0 text, Nicolas Goaziou, 2014/12/13
- Re: [O] demoting a heading inserts spaces in column-0 text, Daniel Clemente, 2014/12/13
- Re: [O] demoting a heading inserts spaces in column-0 text, Nicolas Goaziou, 2014/12/13
- Message not available
- [O] Fwd: demoting a heading inserts spaces in column-0 text, Daniel Clemente, 2014/12/22
- Re: [O] Fwd: demoting a heading inserts spaces in column-0 text, Nicolas Goaziou, 2014/12/22
- Re: [O] Fwd: demoting a heading inserts spaces in column-0 text, Sebastien Vauban, 2014/12/22
- Re: [O] Fwd: demoting a heading inserts spaces in column-0 text, Nicolas Goaziou, 2014/12/23